Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
buttonwidget.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4#ifndef BUTTONWIDGET_H
5#define BUTTONWIDGET_H
6
7#include <QtWidgets>
8
9
10//! [0]
11class ButtonWidget : public QWidget
12{
14
15public:
16 ButtonWidget(const QStringList &texts, QWidget *parent = nullptr);
17
19 void clicked(const QString &text);
20
21private:
22 QSignalMapper *signalMapper;
23//! [0] //! [1]
24};
25//! [1]
26
27#endif