Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qquickapplication_p.h
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
ifndef
QQUICKAPPLICATION_P_H
6
#
define
QQUICKAPPLICATION_P_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
QtQuick
/
private
/
qtquickglobal_p
.
h
>
20
#
include
<
QtQuick
/
private
/
qquickscreen_p
.
h
>
21
22
#
include
<
QtQml
/
qqml
.
h
>
23
#
include
<
QtQml
/
private
/
qqmlglobal_p
.
h
>
24
25
#
include
<
QtGui
/
qfont
.
h
>
26
#
include
<
QtGui
/
qstylehints
.
h
>
27
28
#
include
<
QtCore
/
qobject
.
h
>
29
30
QT_BEGIN_NAMESPACE
31
32
class
Q_QUICK_EXPORT
QQuickApplication
:
public
QQmlApplication
33
{
34
Q_OBJECT
35
Q_PROPERTY(
bool
active READ active NOTIFY activeChanged FINAL)
// deprecated, use 'state' instead
36
Q_PROPERTY(Qt::LayoutDirection layoutDirection READ layoutDirection NOTIFY layoutDirectionChanged FINAL)
37
Q_PROPERTY(
bool
supportsMultipleWindows READ supportsMultipleWindows CONSTANT FINAL)
38
Q_PROPERTY(Qt::ApplicationState state READ state NOTIFY stateChanged FINAL)
39
Q_PROPERTY(QFont font READ font CONSTANT FINAL)
40
Q_PROPERTY(QString displayName READ displayName WRITE setDisplayName NOTIFY displayNameChanged FINAL)
41
Q_PROPERTY(QQmlListProperty<QQuickScreenInfo> screens READ screens NOTIFY screensChanged FINAL)
42
Q_PROPERTY(QStyleHints *styleHints READ styleHints CONSTANT FINAL)
43
44
QML_NAMED_ELEMENT(Application)
45
QML_SINGLETON
46
QML_ADDED_IN_VERSION(2, 0)
47
48
public
:
49
explicit
QQuickApplication(QObject *parent =
nullptr
);
50
virtual
~QQuickApplication();
51
bool
active()
const
;
52
Qt::LayoutDirection layoutDirection()
const
;
53
bool
supportsMultipleWindows()
const
;
54
Qt::ApplicationState state()
const
;
55
QFont font()
const
;
56
QQmlListProperty<QQuickScreenInfo> screens();
57
QString displayName()
const
;
58
void
setDisplayName(
const
QString &displayName);
59
QStyleHints *styleHints();
60
61
Q_SIGNALS:
62
void
activeChanged();
63
void
displayNameChanged();
64
void
layoutDirectionChanged();
65
void
stateChanged(Qt::ApplicationState state);
66
void
screensChanged();
67
68
private
Q_SLOTS:
69
void
updateScreens();
70
71
private
:
72
Q_DISABLE_COPY(QQuickApplication)
73
std::vector<std::unique_ptr<QQuickScreenInfo>> m_screens;
74
};
75
76
QT_END_NAMESPACE
77
78
#
endif
// QQUICKAPPLICATION_P_H
QQuickApplication
Definition
qquickapplication_p.h:33
qtdeclarative
src
quick
util
qquickapplication_p.h
Generated on
for Qt by
1.18.0