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
qquickview_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
QQUICKVIEW_P_H
6
#
define
QQUICKVIEW_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
"qquickview.h"
20
21
#
include
<
QtCore
/
qurl
.
h
>
22
#
include
<
QtCore
/
qelapsedtimer
.
h
>
23
#
include
<
QtCore
/
qtimer
.
h
>
24
#
include
<
QtCore
/
qpointer
.
h
>
25
#
include
<
QtCore
/
QWeakPointer
>
26
27
#
include
<
QtQml
/
qqmlengine
.
h
>
28
#
include
"qquickwindow_p.h"
29
30
#
include
"qquickitemchangelistener_p.h"
31
32
QT_BEGIN_NAMESPACE
33
34
class
QQmlContext;
35
class
QQmlError;
36
class
QQuickItem;
37
class
QQmlComponent;
38
39
class
Q_QUICK_EXPORT
QQuickViewPrivate
:
public
QQuickWindowPrivate,
40
public
QSafeQuickItemChangeListener<QQuickViewPrivate>
41
{
42
Q_DECLARE_PUBLIC(QQuickView)
43
public
:
44
static
QQuickViewPrivate* get(QQuickView *view) {
return
view->d_func(); }
45
static
const
QQuickViewPrivate* get(
const
QQuickView *view) {
return
view->d_func(); }
46
47
QQuickViewPrivate();
48
~QQuickViewPrivate();
49
50
enum
ExecuteState { Continue, Stop };
51
ExecuteState executeHelper();
52
void
execute();
53
void
execute(QAnyStringView uri, QAnyStringView typeName);
54
void
itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change,
const
QRectF &) override;
55
void
initResize();
56
void
updateSize();
57
bool
setRootObject(QObject *);
58
59
void
init(QQmlEngine* e =
nullptr
);
60
61
QSize rootObjectSize()
const
;
62
63
QPointer<QQuickItem> root;
64
65
QUrl source;
66
67
QPointer<QQmlEngine> engine;
68
QQmlComponent *component;
69
QBasicTimer resizetimer;
70
71
QQuickView::ResizeMode resizeMode;
72
QSize initialSize;
73
QElapsedTimer frameTimer;
74
75
QVariantMap initialProperties;
76
};
77
78
QT_END_NAMESPACE
79
80
#
endif
// QQUICKVIEW_P_H
QQuickViewPrivate
Definition
qquickview_p.h:41
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtdeclarative
src
quick
items
qquickview_p.h
Generated on
for Qt by
1.18.0