KDDockWidgets API Documentation 1.7
Loading...
Searching...
No Matches
MDIArea.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#ifndef KDDOCKWIDGETS_MDI_AREA_H
13#define KDDOCKWIDGETS_MDI_AREA_H
14
15#include "kddockwidgets/docks_export.h"
16#include "KDDockWidgets.h"
17#include "QWidgetAdapter.h"
18
19#include <QWidget>
20
21namespace KDDockWidgets {
22
23class MDILayoutWidget;
24class DockWidgetBase;
25class Frame;
26
36class DOCKS_EXPORT MDIArea : public QWidgetAdapter
37{
38 Q_OBJECT
39public:
40 explicit MDIArea(QWidgetOrQuick *parent = nullptr);
41 ~MDIArea();
42
44 void addDockWidget(DockWidgetBase *dw, QPoint localPt, InitialOption addingOption = {});
45
47 void moveDockWidget(DockWidgetBase *dw, QPoint pos);
48
50 void resizeDockWidget(DockWidgetBase *dw, QSize size);
51
54 QList<Frame *> frames() const;
55
58 void onCloseEvent(QCloseEvent *) override;
59
60private:
61 class Private;
62 Private *const d;
63};
64
65}
66
67#endif
File with KDDockWidgets namespace-level enums and methods.
Abstraction for supporting both QtWidgets and QtQuick.
The DockWidget base-class. DockWidget and DockWidgetBase are only split in two so we can share some c...
MDIArea allows to host dock widget in MDI mode. This is an alternative to using a full blown MainWind...
Definition MDIArea.h:37
Struct describing the preferred dock widget size and visibility when adding it to a layout.

© 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