KDDockWidgets API Documentation 1.7
Loading...
Searching...
No Matches
Widget_quick.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
16#include <QQuickItem>
17
18QT_BEGIN_NAMESPACE
19class QQuickItem;
20QT_END_NAMESPACE
21
24
25namespace Layouting {
26
29class DOCKS_EXPORT Widget_quick : public Widget
30{
31public:
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
62protected:
63 QQuickItem *createQQuickItem(const QString &filename, QQuickItem *parent) const;
64
65private:
66 QQuickItem *const m_thisWidget;
67 Q_DISABLE_COPY(Widget_quick)
68};
69
70}
An abstraction/wrapper around QWidget, QtQuickItem or anything else.
A Layouting::Widget that's deals in QQuickItem Allows to host a QQuickItem in the layout.
static QSize widgetMinSize(const QWidget *w)
void setLayoutItem(Item *) override
Widget_quick(QQuickItem *thisWidget)
An abstraction/wrapper around QWidget, QtQuickItem or anything else.
Definition Widget.h:77

© 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