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]
11
class
ButtonWidget
:
public
QWidget
12
{
13
Q_OBJECT
14
15
public
:
16
ButtonWidget
(
const
QStringList
&
texts
,
QWidget
*
parent
=
nullptr
);
17
18
signals
:
19
void
clicked
(
const
QString
&
text
);
20
21
private
:
22
QSignalMapper *signalMapper;
23
//! [0] //! [1]
24
};
25
//! [1]
26
27
#
endif
ButtonWidget
[0]
Definition
buttonwidget.h:12
qtbase
src
corelib
doc
snippets
qsignalmapper
buttonwidget.h
Generated on
for Qt by
1.14.0