Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
8int main(int argc, char *argv[])
9{
10 QApplication app(argc, argv);
11
14 label->setText("&Status:");
16
18 if (label)
21 label->show();
23 return 0;
24}
The QApplication class manages the GUI application's control flow and main settings.
The QLabel widget provides a text or image display.
Definition qlabel.h:20
void setText(const QString &)
Definition qlabel.cpp:263
\inmodule QtCore
Definition qpointer.h:18
int main()
[0]
GLuint GLsizei const GLchar * label
[43]
QApplication app(argc, argv)
[0]