Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qprocess-simpleexecution.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 <QtGui>
6
7int main(int argc, char *argv[])
8{
9 QApplication app(argc, argv);
13 parent = &app;
14
16 QString program = "./path/to/Qt/examples/widgets/analogclock";
18 program = "./../../../../examples/widgets/analogclock/analogclock";
19
22 arguments << "-style" << "fusion";
23
24 QProcess *myProcess = new QProcess(parent);
25 myProcess->start(program, arguments);
27
28 return app.exec();
29}
The QApplication class manages the GUI application's control flow and main settings.
static int exec()
Enters the main event loop and waits until exit() is called, then returns the value that was set to e...
\inmodule QtCore
Definition qobject.h:90
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
int main()
[0]
QList< QVariant > arguments
GLuint program
QApplication app(argc, argv)
[0]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent