KDDockWidgets API Documentation  1.5
MainWindow.h
Go to the documentation of this file.
1 /*
2  This file is part of KDDockWidgets.
3 
4  SPDX-FileCopyrightText: 2019-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 
19 #ifndef KD_MAINWINDOW_H
20 #define KD_MAINWINDOW_H
21 
22 #include "MainWindowBase.h"
23 
24 namespace KDDockWidgets {
25 
26 class SideBar;
27 
32 class DOCKS_EXPORT MainWindow : public MainWindowBase
33 {
34  Q_OBJECT
35 public:
37 
44  explicit MainWindow(const QString &uniqueName, MainWindowOptions options = MainWindowOption_None,
45  QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags());
46 
48  ~MainWindow() override;
49 
51  SideBar *sideBar(SideBarLocation) const override;
52 
53 protected:
54  void resizeEvent(QResizeEvent *) override;
55  QMargins centerWidgetMargins() const override;
56  QRect centralAreaGeometry() const override;
57 
58 private:
60  void setCentralWidget(QWidget *); // overridden just to make it private
61  class Private;
62  Private *const d;
63 };
64 
65 }
66 
67 #endif
QRect
QMainWindow::setCentralWidget
void setCentralWidget(QWidget *widget)
QWidget
KDDockWidgets::MainWindowOption_None
@ MainWindowOption_None
Definition: KDDockWidgets.h:56
MainWindowBase.h
The MainWindow base-class that's shared between QtWidgets and QtQuick stack.
Qt::WindowFlags
typedef WindowFlags
QString
QMargins
KDDockWidgets::SideBarLocation
SideBarLocation
Each main window supports 4 sidebars.
Definition: KDDockWidgets.h:211
KDDockWidgets::MainWindow
The QMainwindow sub-class that the application should use to be able to dock KDDockWidget::DockWidget...
Definition: MainWindow.h:33
QResizeEvent
KDDockWidgets
Definition: Config.cpp:36
KDDockWidgets::MainWindowBase
The MainWindow base-class. MainWindow and MainWindowBase are only split in two so we can share some c...
Definition: MainWindowBase.h:56
KDDockWidgets::MainWindow::List
QVector< MainWindow * > List
Definition: MainWindow.h:36
QVector

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