summaryrefslogtreecommitdiffstats
path: root/qtsingleapplication/examples/console/console.qdoc
blob: 2706e269b9867b1ef93aec4620cf53d811375682 (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
27
28
// Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
// SPDX-License-Identifier: BSD-3-Clause

/*! \page qtsinglecoreapplication-example-console.html
    \title A non-GUI example

    This example shows how to use the single-application functionality
    in a console application. It does not require the \c QtGui library
    at all.

    The only differences from the GUI application usage demonstrated
    in the other examples are:

    1) The \c.pro file should include \c qtsinglecoreapplication.pri
       instead of \c qtsingleapplication.pri

    2) The class name is \c QtSingleCoreApplication instead of \c
       QtSingleApplication.

    3) No calls are made regarding window activation, for obvious reasons.

    console.pro:
    \quotefile console/console.pro

    main.cpp:
    \quotefile console/main.cpp

*/