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
pointer.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
4
#include <QApplication>
5
#include <QLabel>
6
#include <QPointer>
7
8
int
main
(
int
argc,
char
*argv[])
9
{
10
QApplication
app
(argc, argv);
11
13
QPointer<QLabel>
label
=
new
QLabel
;
14
label
->
setText
(
"&Status:"
);
16
18
if
(
label
)
21
label
->show();
23
return
0;
24
}
QApplication
The QApplication class manages the GUI application's control flow and main settings.
Definition
qapplication.h:32
QLabel
The QLabel widget provides a text or image display.
Definition
qlabel.h:20
QLabel::setText
void setText(const QString &)
Definition
qlabel.cpp:263
main
int main()
[0]
Definition
doc_src_objecttrees.cpp:5
label
GLuint GLsizei const GLchar * label
[43]
Definition
qopengles2ext.h:156
app
QApplication app(argc, argv)
[0]
qtbase
src
corelib
doc
snippets
pointer
pointer.cpp
Generated by
1.10.0