7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtWidgets/qabstractscrollarea.h>
9#if QT_CONFIG(tabwidget)
10#include <QtWidgets/qtabwidget.h>
20class Q_WIDGETS_EXPORT
QMdiArea :
public QAbstractScrollArea
27 Q_PROPERTY(
bool documentMode READ documentMode WRITE setDocumentMode)
28 Q_PROPERTY(
bool tabsClosable READ tabsClosable WRITE setTabsClosable)
29 Q_PROPERTY(
bool tabsMovable READ tabsMovable WRITE setTabsMovable)
31#if QT_CONFIG(tabwidget)
37 DontMaximizeSubWindowOnActivation = 0x1
44 ActivationHistoryOrder
57 QSize sizeHint()
const override;
58 QSize minimumSizeHint()
const override;
68 void setBackground(
const QBrush &background);
70 WindowOrder activationOrder()
const;
71 void setActivationOrder(WindowOrder
order);
73 void setOption(AreaOption
option,
bool on =
true);
74 bool testOption(AreaOption opton)
const;
77 ViewMode viewMode()
const;
80 bool documentMode()
const;
81 void setDocumentMode(
bool enabled);
83 void setTabsClosable(
bool closable);
84 bool tabsClosable()
const;
86 void setTabsMovable(
bool movable);
87 bool tabsMovable()
const;
89#if QT_CONFIG(tabwidget)
102 void tileSubWindows();
103 void cascadeSubWindows();
104 void closeActiveSubWindow();
105 void closeAllSubWindows();
106 void activateNextSubWindow();
107 void activatePreviousSubWindow();
119 void showEvent(
QShowEvent *showEvent)
override;
121 void scrollContentsBy(
int dx,
int dy)
override;
127 Q_PRIVATE_SLOT(d_func(),
void _q_processWindowStateChanged(
Qt::WindowStates,
Qt::WindowStates))
The QMdiArea widget provides an area in which MDI windows are displayed.
WindowOrder
Specifies the criteria to use for ordering the list of child windows returned by subWindowList().
void subWindowActivated(QMdiSubWindow *)
QMdiArea emits this signal after window has been activated.
AreaOption
This enum describes options that customize the behavior of the QMdiArea.
The QMdiSubWindow class provides a subwindow class for QMdiArea.
The QPaintEvent class contains event parameters for paint events.
The QResizeEvent class contains event parameters for resize events.
The QShowEvent class provides an event that is sent when a widget is shown.
Combined button and popup list for selecting options.
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
GLenum GLenum GLsizei const GLuint GLboolean enabled
GLfixed GLfixed GLint GLint order
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
#define QT_REQUIRE_CONFIG(feature)
dialog setViewMode(QFileDialog::Detail)
[3]
view viewport() -> scroll(dx, dy, deviceRect)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent