KDDockWidgets API Documentation  1.5
DockWidgetQuick.h
Go to the documentation of this file.
1 /*
2  This file is part of KDDockWidgets.
3 
4  SPDX-FileCopyrightText: 2019-2022 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 
24 QT_BEGIN_NAMESPACE
25 class QCloseEvent;
26 class QQmlEngine;
27 QT_END_NAMESPACE
28 
29 namespace KDDockWidgets {
30 
31 class Frame;
32 class TitleBar;
33 
39 class DOCKS_EXPORT DockWidgetQuick : public DockWidgetBase
40 {
41  Q_OBJECT
42  Q_PROPERTY(QObject *actualTitleBar READ actualTitleBarObj NOTIFY actualTitleBarChanged)
43 public:
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 
96 Q_SIGNALS:
100 
101 protected:
102  bool event(QEvent *e) override;
103 
104 private:
105  class Private;
106  Private *const d;
107 };
108 
109 }
110 
111 #endif
DockWidgetBase.h
The DockWidget base-class that's shared between QtWidgets and QtQuick stack.
QRect
QSize
KDDockWidgets::DockWidgetQuick
Represents a dock widget.
Definition: DockWidgetQuick.h:40
KDDockWidgets::DockWidgetQuick::frameGeometryChanged
void frameGeometryChanged(QRect)
The geometry of the frame container this dock widget is in changed For example, when dragging a dockw...
QCloseEvent
QObject
QString
QEvent
KDDockWidgets::DockWidgetBase
The DockWidget base-class. DockWidget and DockWidgetBase are only split in two so we can share some c...
Definition: DockWidgetBase.h:61
KDDockWidgets
Definition: Config.cpp:36

© 2019-2022 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 Mon Mar 7 2022 02:01:20 for KDDockWidgets API Documentation by doxygen 1.8.20