summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/io/qprocess/testGuiProcess/main.cpp
blob: 1c652685116bcf672a70b1cea11a61a31e1b0746 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtWidgets/QApplication>
#include <QtWidgets/QLabel>
#include <stdio.h>

int main(int argc, char **argv)
{
    QApplication app(argc, argv);

    QLabel label("This process is just waiting to die");
    label.show();

    int c;
    Q_UNUSED(c);
    fgetc(stdin); // block until fed

    qDebug("Process is running");

    return 0;
}