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
src_gui_widgets_qgroupbox.cpp
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
5g->setTitle("&User information");
7
9QGroupBox *groupBox = new QGroupBox(tr("Group Box with Layout"));
10
11QRadioButton *radio1 = new QRadioButton(tr("&Radio button 1"));
12QRadioButton *radio2 = new QRadioButton(tr("R&adio button 2"));
13QRadioButton *radio3 = new QRadioButton(tr("Ra&dio button 3"));
14
16
void addWidget(QWidget *, int stretch=0, Qt::Alignment alignment=Qt::Alignment())
Adds widget to the end of this box layout, with a stretch factor of stretch and alignment alignment.
void addStretch(int stretch=0)
Adds a stretchable space (a QSpacerItem) with zero minimum size and stretch factor stretch to the end...
The QGroupBox widget provides a group box frame with a title.
Definition qgroupbox.h:17
The QRadioButton widget provides a radio button with a text label.
The QVBoxLayout class lines up widgets vertically.
Definition qboxlayout.h:91
void setLayout(QLayout *)
Sets the layout manager for this widget to layout.
GLboolean GLboolean g
#define tr(X)
QRadioButton * radio1
QRadioButton * radio2
QGroupBox * groupBox
[0]
QVBoxLayout * vbox
QRadioButton * radio3