KDDockWidgets API Documentation 2.0
Loading...
Searching...
No Matches
DebugWindow.h
Go to the documentation of this file.
1/*
2 This file is part of KDDockWidgets.
3
4 SPDX-FileCopyrightText: 2019 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
5 Author: SĂ©rgio Martins <sergio.martins@kdab.com>
6
7 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
8
9 Contact KDAB at <info@kdab.com> for commercial licensing options.
10*/
11
19#ifndef DEBUGWINDOW_H
20#define DEBUGWINDOW_H
21#pragma once
22
23#include "ObjectViewer.h"
24
25#include <QWidget>
26
27QT_BEGIN_NAMESPACE
28class QEventLoop;
29QT_END_NAMESPACE
30
31namespace KDDockWidgets {
32namespace Debug {
33
34class DebugWindow : public QWidget
35{
37public:
38 explicit DebugWindow(QWidget *parent = nullptr);
39
40private:
41#ifdef Q_OS_WIN
42 void dumpWindow(QWidget *);
43 void dumpWindows();
44#endif
45
46 void repaintWidgetRecursive(QWidget *);
47
48 void dumpDockWidgetInfo();
49 ObjectViewer m_objectViewer;
50 QEventLoop *m_isPickingWidget = nullptr;
51
52protected:
53 void mousePressEvent(QMouseEvent *event) override;
54};
55}
56}
57
58#endif
Tree Widget to show the object tree. Used for debugging only, for apps that don't support GammaRay.
void mousePressEvent(QMouseEvent *event) override
Class to abstract QAction, so code still works with QtQuick and Flutter.
Q_OBJECTQ_OBJECT
QObject * parent() const const
virtual bool event(QEvent *event) override

© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDDockWidgets
Advanced Dock Widget Framework for Qt
https://www.kdab.com/development-resources/qt-tools/kddockwidgets/
Generated by doxygen 1.9.8