Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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 GPL-3.0-only WITH Qt-GPL-exception-1.0
3// Qt-Security score:significant reason:default
4
5#include "qdesigner.h"
6#include <QtCore/qlibraryinfo.h>
7#include <QtCore/qdir.h>
8
9QT_USE_NAMESPACE
10
11int main(int argc, char *argv[])
12{
13 // required for QWebEngineView
14 QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
15
16 QDesigner app(argc, argv);
17 switch (app.parseCommandLineArguments()) {
18 case QDesigner::ParseArgumentsSuccess:
19 break;
20 case QDesigner::ParseArgumentsError:
21 return 1;
22 case QDesigner::ParseArgumentsHelpRequested:
23 return 0;
24 }
25 QGuiApplication::setQuitOnLastWindowClosed(false);
26
27 return QApplication::exec();
28}
QDesigner(int &argc, char **argv)
Definition qdesigner.cpp:55
int main(int argc, char *argv[])
[ctor_close]