KDDockWidgets API Documentation 1.7
Loading...
Searching...
No Matches
Widget_qwidget.h
Go to the documentation of this file.
1/*
2 This file is part of KDDockWidgets.
3
4 SPDX-FileCopyrightText: 2020-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
12#pragma once
13
14#include "Widget.h"
15
16QT_BEGIN_NAMESPACE
17class QWidget;
19
22
23namespace Layouting {
24
27class DOCKS_EXPORT Widget_qwidget : public Widget
28{
29public:
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
59private:
60 QWidget *const m_thisWidget;
61 Q_DISABLE_COPY(Widget_qwidget)
62};
63
64}
An abstraction/wrapper around QWidget, QtQuickItem or anything else.
A Layouting::Widget that's deals in QWidget Allows to host a QWidget in the layout.
void setLayoutItem(Item *) override
QWidget * asQWidget() const override
An abstraction/wrapper around QWidget, QtQuickItem or anything else.
Definition Widget.h:77
T qobject_cast(QObject *object)

© 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