KDDockWidgets API Documentation 1.7
Loading...
Searching...
No Matches
DockWidgetQuick.h
Go to the documentation of this file.
1/*
2 This file is part of KDDockWidgets.
3
4 SPDX-FileCopyrightText: 2019-2023 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 KD_DOCKWIDGET_QUICK_H
20#define KD_DOCKWIDGET_QUICK_H
21
22#include "DockWidgetBase.h"
23
24QT_BEGIN_NAMESPACE
25class QCloseEvent;
26class QQmlEngine;
27QT_END_NAMESPACE
28
29namespace KDDockWidgets {
30
31class Frame;
32class TitleBar;
33
39class DOCKS_EXPORT DockWidgetQuick : public DockWidgetBase
40{
41 Q_OBJECT
42 Q_PROPERTY(QObject *actualTitleBar READ actualTitleBarObj NOTIFY actualTitleBarChanged)
43public:
55 explicit DockWidgetQuick(const QString &uniqueName, Options options = {},
56 LayoutSaverOptions layoutSaverOptions = LayoutSaverOptions(),
57 QQmlEngine *engine = nullptr);
58
60 ~DockWidgetQuick() override;
61
64 void setWidget(const QString &qmlFilename);
65
67 void setWidget(QWidgetAdapter *widget) override;
68
70 Q_INVOKABLE void setWidget(QQuickItem *widget);
71
73 QSize minimumSize() const override;
74
76 QSize maximumSize() const override;
77
79 TitleBar *actualTitleBar() const;
80
84 QObject *actualTitleBarObj() const;
85
88 QQuickItem *frameVisualItem() const;
89
91 Q_INVOKABLE KDDockWidgets::Frame *frame() const;
92
94 Q_INVOKABLE void onGeometryUpdated();
95
96Q_SIGNALS:
100
101protected:
102 bool event(QEvent *e) override;
103
104private:
105 class Private;
106 Private *const d;
107};
108
109}
110
111#endif
The DockWidget base-class that's shared between QtWidgets and QtQuick stack.
The DockWidget base-class. DockWidget and DockWidgetBase are only split in two so we can share some c...
Represents a dock widget.
void frameGeometryChanged(QRect)
The geometry of the frame container this dock widget is in changed For example, when dragging a dockw...

© 2019-2023 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 on Wed Nov 1 2023 00:02:31 for KDDockWidgets API Documentation by doxygen 1.9.8