Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
4#ifndef QQUICKVIEW_P_H
5#define QQUICKVIEW_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include "qquickview.h"
19
20#include <QtCore/qurl.h>
21#include <QtCore/qelapsedtimer.h>
22#include <QtCore/qtimer.h>
23#include <QtCore/qpointer.h>
24#include <QtCore/QWeakPointer>
25
26#include <QtQml/qqmlengine.h>
27#include "qquickwindow_p.h"
28
30
32
33class QQmlContext;
34class QQmlError;
35class QQuickItem;
36class QQmlComponent;
37
38class Q_QUICK_EXPORT QQuickViewPrivate : public QQuickWindowPrivate,
40{
41 Q_DECLARE_PUBLIC(QQuickView)
42public:
43 static QQuickViewPrivate* get(QQuickView *view) { return view->d_func(); }
44 static const QQuickViewPrivate* get(const QQuickView *view) { return view->d_func(); }
45
48
49 enum ExecuteState { Continue, Stop };
50 ExecuteState executeHelper();
51 void execute();
52 void execute(QAnyStringView uri, QAnyStringView typeName);
53 void itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &) override;
54 void initResize();
55 void updateSize();
56 bool setRootObject(QObject *);
57
58 void init(QQmlEngine* e = nullptr);
59
60 QSize rootObjectSize() const;
61
62 QPointer<QQuickItem> root;
63
65
66 QPointer<QQmlEngine> engine;
69
73
75};
76
78
79#endif // QQUICKVIEW_P_H
\inmodule QtCore
\inmodule QtCore
Definition qbasictimer.h:18
\inmodule QtCore
\inmodule QtCore
Definition qobject.h:103
The QQmlComponent class encapsulates a QML component definition.
The QQmlContext class defines a context within a QML engine.
Definition qqmlcontext.h:25
The QQmlEngine class provides an environment for instantiating QML components.
Definition qqmlengine.h:57
The QQmlError class encapsulates a QML error.
Definition qqmlerror.h:18
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
static QQuickViewPrivate * get(QQuickView *view)
QBasicTimer resizetimer
QQuickView::ResizeMode resizeMode
static const QQuickViewPrivate * get(const QQuickView *view)
QPointer< QQuickItem > root
QElapsedTimer frameTimer
QPointer< QQmlEngine > engine
QQmlComponent * component
QVariantMap initialProperties
The QQuickView class provides a window for displaying a Qt Quick user interface.
Definition qquickview.h:20
ResizeMode
This enum specifies how to resize the view.
Definition qquickview.h:40
\inmodule QtCore\reentrant
Definition qrect.h:484
\inmodule QtCore
Definition qsize.h:25
\inmodule QtCore
Definition qurl.h:94
Combined button and popup list for selecting options.
const char * typeName
static QT_BEGIN_NAMESPACE void init(QTextBoundaryFinder::BoundaryType type, QStringView str, QCharAttributes *attributes)
QGraphicsItem * item
QQuickView * view
[0]