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
main.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
5#include <QtWidgets>
6
7#include "customstyle.h"
8
9int main(int argc, char *argv[])
10{
12 QApplication app(argc, argv);
14 spinBox.show();
15 return app.exec();
16}
The QApplication class manages the GUI application's control flow and main settings.
static void setStyle(QStyle *)
Sets the application's GUI style to style.
static int exec()
Enters the main event loop and waits until exit() is called, then returns the value that was set to e...
The QSpinBox class provides a spin box widget.
Definition qspinbox.h:16
void show()
Shows the widget and its child widgets.
Definition qwidget.cpp:7875
int main()
[0]
QApplication app(argc, argv)
[0]
QSpinBox * spinBox
[0]