Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
9QT_BEGIN_NAMESPACE
10
11class QQmlDebugService;
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; }
33 QQuickItem *topVisibleItemAt(const QPointF &pos) const;
34 QList<QQuickItem *> itemsAt(const QPointF &pos) const;
35
36 QQuickWindow *quickWindow() const;
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
56QT_END_NAMESPACE
57
58#endif // QQUICKWINDOWINSPECTOR_H
void processMessage(const QByteArray &message)
void setParentWindow(QQuickWindow *window, QWindow *parentWindow)
void removeWindow(QQuickWindow *window)
void setQmlEngine(QQuickWindow *window, QQmlEngine *engine)
void showSelectedItemName(QQuickItem *item, const QPointF &point)
void setSelectedItems(const QList< QQuickItem * > &items)
void addWindow(QQuickWindow *window)
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.
const char RESPONSE[]
const char SHOW_APP_ON_TOP[]
const char MOVE_OBJECT[]
const char SET_ANIMATION_SPEED[]
const char SELECT[]
const char DISABLE[]
const char ENABLE[]
const char REQUEST[]
const char CREATE_OBJECT[]
const char EVENT[]
const char DESTROY_OBJECT[]
static bool reparentQmlObject(QObject *object, QObject *newParent)