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
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
<
QtCore
>
5
6
int
main
(
int
argc,
char
*argv[])
7
{
8
Q_UNUSED(argc)
9
Q_UNUSED(argv)
10
//! [0]
11
QObject *parent =
new
QObject;
12
//! [0]
13
14
//! [1]
15
QString program =
"./path/to/Qt/examples/widgets/analogclock"
;
16
//! [1]
17
program =
"./../../../../examples/widgets/analogclock/analogclock"
;
18
19
//! [2]
20
QStringList arguments;
21
arguments <<
"-style"
<<
"fusion"
;
22
23
QProcess *myProcess =
new
QProcess(parent);
24
myProcess->start(program, arguments);
25
//! [2]
26
}
main
int main(int argc, char *argv[])
[ctor_close]
Definition
src_corelib_animation_qpropertyanimation.cpp:100
qtbase
src
corelib
doc
snippets
qprocess
qprocess-simpleexecution.cpp
Generated on
for Qt by
1.14.0