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