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// Qt-Security score:significant
4
5#ifndef QQUICKWINDOWINSPECTOR_H
6#define QQUICKWINDOWINSPECTOR_H
7
8#include <QtCore/QObject>
9
10QT_BEGIN_NAMESPACE
11
12class QQmlDebugService;
13class QQuickWindow;
14class QQmlEngine;
15class QWindow;
16class QQuickItem;
17
18namespace QmlJSDebugger {
19
20class InspectTool;
21class GlobalInspector;
22
23/*
24 * The common code between QQuickView and QQuickView inspectors lives here,
25 */
27{
29
30public:
32
33 QQuickItem *overlay() const { return m_overlay; }
34 QQuickItem *topVisibleItemAt(const QPointF &pos) const;
35 QList<QQuickItem *> itemsAt(const QPointF &pos) const;
36
37 QQuickWindow *quickWindow() const;
38
39 void setParentWindow(QWindow *parentWindow);
40 void setShowAppOnTop(bool appOnTop);
41
42 bool isEnabled() const;
43 void setEnabled(bool enabled);
44
45protected:
46 bool eventFilter(QObject *, QEvent *) override;
47
48private:
49 QQuickItem *m_overlay;
50 QQuickWindow *m_window;
51 QWindow *m_parentWindow;
52 InspectTool *m_tool;
53};
54
55} // namespace QmlJSDebugger
56
57QT_END_NAMESPACE
58
59#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[]
Combined button and popup list for selecting options.
static bool reparentQmlObject(QObject *object, QObject *newParent)