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
qquickwindowmodule_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 QQUICKWINDOWMODULE_H
5#define QQUICKWINDOWMODULE_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 <private/qtquickglobal_p.h>
19#include <qquickwindow.h>
20#include <qqmlparserstatus.h>
21#include <private/qquickwindowattached_p.h>
22
24
26
34
35class Q_QUICK_EXPORT QQuickWindowQmlImpl : public QQuickWindow, public QQmlParserStatus
36{
39
40 Q_PROPERTY(bool visible READ isVisible WRITE setVisible NOTIFY visibleChanged)
41 Q_PROPERTY(QWindow::Visibility visibility READ visibility WRITE setVisibility NOTIFY
42 visibilityChanged)
43 Q_PROPERTY(QObject *screen READ screen WRITE setScreen NOTIFY screenChanged REVISION(2, 3))
44 Q_PROPERTY(QObject *parent READ visualParent WRITE setVisualParent NOTIFY visualParentChanged DESIGNABLE false FINAL REVISION(6, 7))
45 Q_PROPERTY(int x READ x WRITE setX NOTIFY xChanged)
46 Q_PROPERTY(int y READ y WRITE setY NOTIFY yChanged)
47 Q_PROPERTY(qreal z READ z WRITE setZ NOTIFY zChanged FINAL REVISION(6, 7))
51
52public:
53 QQuickWindowQmlImpl(QWindow *parent = nullptr);
55
56 void setVisible(bool visible);
57 void setVisibility(QWindow::Visibility visibility);
58
59 QObject *screen() const;
60 void setScreen(QObject *screen);
61
62 QObject *visualParent() const;
63 void setVisualParent(QObject *parent);
64
65 void setX(int arg);
66 int x() const;
67 void setY(int arg);
68 int y() const;
69 void setZ(qreal arg);
70 qreal z() const;
71
72 static QQuickWindowAttached *qmlAttachedProperties(QObject *object);
73
75 void visibleChanged(bool arg);
76 void visibilityChanged(QWindow::Visibility visibility);
77 Q_REVISION(6, 7) void visualParentChanged(QObject *);
78 Q_REVISION(2, 3) void screenChanged();
79
80 void xChanged(int arg);
81 void yChanged(int arg);
82 Q_REVISION(6, 7) void zChanged();
83
84protected:
85 void classBegin() override;
86 void componentComplete() override;
87
88 bool event(QEvent *) override;
89
91
93 Q_REVISION(6, 7) void applyWindowVisibility();
94 Q_REVISION(6, 7) void updateTransientParent();
95
97 bool transientParentVisible();
98 void applyVisualParent();
99
100private:
101 Q_DISABLE_COPY(QQuickWindowQmlImpl)
102 Q_DECLARE_PRIVATE(QQuickWindowQmlImpl)
103};
104
106
107#endif
\inmodule QtCore
Definition qcoreevent.h:45
\inmodule QtCore
Definition qobject.h:103
The QQmlParserStatus class provides updates on the QML parser state.
\qmltype Window \instantiates QQuickWindow \inqmlmodule QtQuick
\inmodule QtGui
Definition qwindow.h:63
[Window class with invokable method]
Definition window.h:11
Combined button and popup list for selecting options.
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat z
GLint GLint GLint GLint GLint x
[0]
GLint y
struct _cl_event * event
#define QML_ANONYMOUS
#define QML_NAMED_ELEMENT(NAME)
#define QML_FOREIGN(FOREIGN_TYPE)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define QML_ATTACHED(ATTACHED_TYPE)
SSL_CTX int void * arg
QScreen * screen
[1]
Definition main.cpp:29
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_REVISION(...)
#define Q_INTERFACES(x)
#define Q_SLOTS
#define Q_GADGET
#define Q_SIGNALS
double qreal
Definition qtypes.h:187
p setX(p.x()+1)
edit isVisible()