Qt 5.10 Book Examples
chapter08
ButtonGroup
Buttons.h
Go to the documentation of this file.
1
// ======================================================================
2
// Buttons.h
3
// ======================================================================
4
// This file is a part of the book
5
// "Qt 5.10 Professional programming with C++"
6
// http://qt-book.com
7
// ======================================================================
8
// Copyright (c) 2017 by Max Schlee
9
// ======================================================================
10
11
#pragma once
12
13
#include <QGroupBox>
14
15
class
QCheckBox;
16
class
QRadioButton;
17
18
// ======================================================================
19
class
Buttons
:
public
QGroupBox {
20
Q_OBJECT
21
private
:
22
QCheckBox* m_pchk;
23
QRadioButton* m_pradRed;
24
QRadioButton* m_pradGreen;
25
QRadioButton* m_pradBlue;
26
27
public
:
28
Buttons
(QWidget* pwgt = 0);
29
30
public
slots:
31
void
slotButtonClicked
();
32
};
33
Buttons::slotButtonClicked
void slotButtonClicked()
Definition:
Buttons.cpp:49
Buttons::Buttons
Buttons(QWidget *pwgt=0)
Definition:
Buttons.cpp:15
Buttons
Definition:
Buttons.h:19
Generated by
1.8.14