Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
doc_src_objecttrees.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
5int main()
6{
8 QPushButton quit("Quit", &window);
9 ...
10}
12
13
15int main()
16{
17 QPushButton quit("Quit");
19
20 quit.setParent(&window);
21 ...
22}
The QPushButton widget provides a command button.
Definition qpushbutton.h:20
The QWidget class is the base class of all user interface objects.
Definition qwidget.h:99
int main()
[0]
aWidget window() -> setWindowTitle("New Window Title")
[2]