Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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 <QWidget>
8
9class QSignalMapper;
10class QString;
11
13class ButtonWidget : public QWidget
14{
16
17public:
18 ButtonWidget(const QStringList &texts, QWidget *parent = nullptr);
19
21 void clicked(const QString &text);
22
23private:
24 QSignalMapper *signalMapper;
26};
28
29#endif
ButtonWidget(const QStringList &texts, QWidget *parent=nullptr)
[0]
void clicked(const QString &text)
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
\inmodule QtCore
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
The QWidget class is the base class of all user interface objects.
Definition qwidget.h:99
QString text
#define Q_OBJECT
#define signals