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
qquickwindowattached_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 QQUICKWINDOW_ATTACHED_P_H
5#define QQUICKWINDOW_ATTACHED_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 <private/qtquickglobal_p.h>
19#include <qqml.h>
20#include <QWindow>
21
23
24class QQuickItem;
25class QQuickWindow;
26
27class Q_QUICK_EXPORT QQuickWindowAttached : public QObject
28{
30
31 Q_PROPERTY(QWindow::Visibility visibility READ visibility NOTIFY visibilityChanged FINAL)
32 Q_PROPERTY(bool active READ isActive NOTIFY activeChanged FINAL)
33 Q_PROPERTY(QQuickItem* activeFocusItem READ activeFocusItem NOTIFY activeFocusItemChanged FINAL)
34 Q_PROPERTY(QQuickItem* contentItem READ contentItem NOTIFY contentItemChanged FINAL)
35 Q_PROPERTY(int width READ width NOTIFY widthChanged FINAL)
36 Q_PROPERTY(int height READ height NOTIFY heightChanged FINAL)
37 Q_PROPERTY(QQuickWindow *window READ window NOTIFY windowChanged FINAL)
40
41public:
43
44 QWindow::Visibility visibility() const;
45 bool isActive() const;
46 QQuickItem* activeFocusItem() const;
47 QQuickItem* contentItem() const;
48 int width() const;
49 int height() const;
50 QQuickWindow *window() const;
51
53
54 void visibilityChanged();
55 void activeChanged();
56 void activeFocusItemChanged();
57 void contentItemChanged();
58 void widthChanged();
59 void heightChanged();
60 void windowChanged();
61
62protected Q_SLOTS:
63 void windowChange(QQuickWindow*);
64
66 QQuickWindow* m_window;
67 QQuickItem* m_attachee;
68};
69
71
72#endif
bool isActive
\inmodule QtCore
Definition qobject.h:103
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
\qmltype Window \instantiates QQuickWindow \inqmlmodule QtQuick
\inmodule QtGui
Definition qwindow.h:63
Combined button and popup list for selecting options.
GLint GLsizei GLsizei height
GLint GLsizei width
#define QML_ANONYMOUS
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SLOTS
#define Q_SIGNALS
aWidget window() -> setWindowTitle("New Window Title")
[2]