Qt 6.x
The Qt SDK
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_PRIVATE_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 void execute();
50 void itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &) override;
51 void initResize();
52 void updateSize();
53 bool setRootObject(QObject *);
54
55 void init(QQmlEngine* e = nullptr);
56
57 QSize rootObjectSize() const;
58
60
62
66
70
72};
73
75
76#endif // QQUICKVIEW_P_H
\inmodule QtCore
Definition qbasictimer.h:18
\inmodule QtCore
\inmodule QtCore
Definition qobject.h:90
\inmodule QtCore
Definition qpointer.h:18
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
virtual void itemGeometryChanged(QQuickItem *, QQuickGeometryChange, const QRectF &)
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:64
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:39
void init(QQuickWindow *, QQuickRenderControl *control=nullptr)
\inmodule QtCore\reentrant
Definition qrect.h:483
\inmodule QtCore
Definition qsize.h:25
\inmodule QtCore
Definition qurl.h:94
double e
Combined button and popup list for selecting options.
QGraphicsItem * item
QQuickView * view
[0]