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
qquickwindowinspector.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 QQUICKWINDOWINSPECTOR_H
5#define QQUICKWINDOWINSPECTOR_H
6
7#include <QtCore/QObject>
8
10
12class QQuickWindow;
13class QQmlEngine;
14class QWindow;
15class QQuickItem;
16
17namespace QmlJSDebugger {
18
19class InspectTool;
20class GlobalInspector;
21
22/*
23 * The common code between QQuickView and QQuickView inspectors lives here,
24 */
26{
28
29public:
31
32 QQuickItem *overlay() const { return m_overlay; }
34 QList<QQuickItem *> itemsAt(const QPointF &pos) const;
35
37
38 void setParentWindow(QWindow *parentWindow);
39 void setShowAppOnTop(bool appOnTop);
40
41 bool isEnabled() const;
42 void setEnabled(bool enabled);
43
44protected:
45 bool eventFilter(QObject *, QEvent *) override;
46
47private:
48 QQuickItem *m_overlay;
49 QQuickWindow *m_window;
50 QWindow *m_parentWindow;
51 InspectTool *m_tool;
52};
53
54} // namespace QmlJSDebugger
55
57
58#endif // QQUICKWINDOWINSPECTOR_H
\inmodule QtCore
Definition qcoreevent.h:45
\inmodule QtCore
Definition qobject.h:103
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
\inmodule QtCore\reentrant
Definition qpoint.h:217
The QQmlEngine class provides an environment for instantiating QML components.
Definition qqmlengine.h:57
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
QQuickItem * topVisibleItemAt(const QPointF &pos) const
QList< QQuickItem * > itemsAt(const QPointF &pos) const
bool eventFilter(QObject *, QEvent *) override
Filters events if this object has been installed as an event filter for the watched object.
QQuickWindowInspector(QQuickWindow *quickWindow, QObject *parent=nullptr)
Combined button and popup list for selecting options.
GLenum GLenum GLsizei const GLuint GLboolean enabled
#define Q_OBJECT