blob: be8efee5e139b2dd7cbefd6c9d80fc8a954fe5d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include <QtCore>
int main(int argc, char *argv[])
{
Q_UNUSED(argc)
Q_UNUSED(argv)
//! [0]
QObject *parent = new QObject;
//! [0]
//! [1]
QString program = "./path/to/Qt/examples/widgets/analogclock";
//! [1]
program = "./../../../../examples/widgets/analogclock/analogclock";
//! [2]
QStringList arguments;
arguments << "-style" << "fusion";
QProcess *myProcess = new QProcess(parent);
myProcess->start(program, arguments);
//! [2]
}
|