KDDockWidgets API Documentation  1.5
Widget_qwidget.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 QT_BEGIN_NAMESPACE
17 class QWidget;
18 QT_END_NAMESPACE
19 
22 
23 namespace Layouting {
24 
27 class DOCKS_EXPORT Widget_qwidget : public Widget
28 {
29 public:
30  explicit Widget_qwidget(QWidget *thisWidget);
31  ~Widget_qwidget() override;
32 
33  QWidget *asQWidget() const override
34  {
35  return m_thisWidget;
36  }
37 
38  QSize sizeHint() const override;
39  QSize minSize() const override;
40  QSize maxSizeHint() const override;
41  QRect geometry() const override;
42  void setGeometry(QRect) override;
43  void setParent(Widget *) override;
44  QDebug &dumpDebug(QDebug &) const override;
45  bool isVisible() const override;
46  void setVisible(bool) const override;
47  std::unique_ptr<Widget> parentWidget() const override;
48  void setLayoutItem(Item *) override
49  {
50  }
51  void show() override;
52  void hide() override;
53  void move(int x, int y) override;
54  void setSize(int width, int height) override;
55  void setWidth(int width) override;
56  void setHeight(int height) override;
57  void update() override;
58 
59 private:
60  QWidget *const m_thisWidget;
61  Q_DISABLE_COPY(Widget_qwidget)
62 };
63 
64 }
QRect
Widget.h
An abstraction/wrapper around QWidget, QtQuickItem or anything else.
QWidget
QSize
Layouting::Widget_qwidget::asQWidget
QWidget * asQWidget() const override
Definition: Widget_qwidget.h:33
QDebug
Layouting::Widget_qwidget
A Layouting::Widget that's deals in QWidget Allows to host a QWidget in the layout.
Definition: Widget_qwidget.h:28
Layouting::Widget
An abstraction/wrapper around QWidget, QtQuickItem or anything else.
Definition: Widget.h:79
Layouting::Widget_qwidget::setLayoutItem
void setLayoutItem(Item *) override
Definition: Widget_qwidget.h:48
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