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
4#include "qdesigner.h"
5#include <QtCore/qlibraryinfo.h>
6#include <QtCore/qdir.h>
7
8QT_USE_NAMESPACE
9
10int main(int argc, char *argv[])
11{
12 // required for QWebEngineView
13 QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
14
15 QDesigner app(argc, argv);
16 switch (app.parseCommandLineArguments()) {
17 case QDesigner::ParseArgumentsSuccess:
18 break;
19 case QDesigner::ParseArgumentsError:
20 return 1;
21 case QDesigner::ParseArgumentsHelpRequested:
22 return 0;
23 }
24 QGuiApplication::setQuitOnLastWindowClosed(false);
25
26 return QApplication::exec();
27}
QDesigner(int &argc, char **argv)
Definition qdesigner.cpp:54
int main(int argc, char *argv[])
[ctor_close]