KDDockWidgets API Documentation  1.5
Widget_quick.h
Go to the documentation of this file.
1 /*
2  This file is part of KDDockWidgets.
3 
4  SPDX-FileCopyrightText: 2020-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 
12 #pragma once
13 
14 #include "Widget.h"
15 
16 #include <QQuickItem>
17 
18 QT_BEGIN_NAMESPACE
19 class QQuickItem;
20 QT_END_NAMESPACE
21 
24 
25 namespace Layouting {
26 
29 class DOCKS_EXPORT Widget_quick : public Widget
30 {
31 public:
32  explicit Widget_quick(QQuickItem *thisWidget)
33  : Widget(thisWidget)
34  , m_thisWidget(thisWidget)
35  {
36  }
37 
38  ~Widget_quick() override;
39 
40  QSize minSize() const override;
41  QSize maxSizeHint() const override;
42  QRect geometry() const override;
43  void setGeometry(QRect) override;
44  void setParent(Widget *) override;
45  QDebug &dumpDebug(QDebug &) const override;
46  bool isVisible() const override;
47  void setVisible(bool) const override;
48  std::unique_ptr<Widget> parentWidget() const override;
49  void setLayoutItem(Item *) override
50  {
51  }
52  void show() override;
53  void hide() override;
54  void move(int x, int y) override;
55  void setSize(int width, int height) override;
56  void setWidth(int width) override;
57  void setHeight(int height) override;
58  void update() override;
59 
60  static QSize widgetMinSize(const QWidget *w);
61 
62 protected:
63  QQuickItem *createQQuickItem(const QString &filename, QQuickItem *parent) const;
64 
65 private:
66  QQuickItem *const m_thisWidget;
67  Q_DISABLE_COPY(Widget_quick)
68 };
69 
70 }
QRect
Widget.h
An abstraction/wrapper around QWidget, QtQuickItem or anything else.
QWidget
QSize
QDebug
Layouting::Widget_quick::Widget_quick
Widget_quick(QQuickItem *thisWidget)
Definition: Widget_quick.h:32
Layouting::Widget_quick::setLayoutItem
void setLayoutItem(Item *) override
Definition: Widget_quick.h:49
QString
Layouting::Widget
An abstraction/wrapper around QWidget, QtQuickItem or anything else.
Definition: Widget.h:79
Layouting::Widget_quick::widgetMinSize
static QSize widgetMinSize(const QWidget *w)
Layouting::Widget_quick
A Layouting::Widget that's deals in QQuickItem Allows to host a QQuickItem in the layout.
Definition: Widget_quick.h:30
Layouting
Definition: FrameworkWidgetFactory.h:32

© 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:21 for KDDockWidgets API Documentation by doxygen 1.8.20