Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
DockedMdiArea Class Reference

#include <mainwindow.h>

+ Inheritance diagram for DockedMdiArea:
+ Collaboration diagram for DockedMdiArea:

Signals

void fileDropped (const QString &)
 
- Signals inherited from QMdiArea
void subWindowActivated (QMdiSubWindow *)
 QMdiArea emits this signal after window has been activated.
 

Public Member Functions

 DockedMdiArea (const QString &extension, QWidget *parent=nullptr)
 
- Public Member Functions inherited from QMdiArea
 QMdiArea (QWidget *parent=nullptr)
 Constructs an empty mdi area.
 
 ~QMdiArea ()
 Destroys the MDI area.
 
QSize sizeHint () const override
 \reimp
 
QSize minimumSizeHint () const override
 \reimp
 
QMdiSubWindowcurrentSubWindow () const
 Returns a pointer to the current subwindow, or \nullptr if there is no current subwindow.
 
QMdiSubWindowactiveSubWindow () const
 Returns a pointer to the current active subwindow.
 
QList< QMdiSubWindow * > subWindowList (WindowOrder order=CreationOrder) const
 Returns a list of all subwindows in the MDI area.
 
QMdiSubWindowaddSubWindow (QWidget *widget, Qt::WindowFlags flags=Qt::WindowFlags())
 Adds widget as a new subwindow to the MDI area.
 
void removeSubWindow (QWidget *widget)
 Removes widget from the MDI area.
 
QBrush background () const
 
void setBackground (const QBrush &background)
 
WindowOrder activationOrder () const
 
void setActivationOrder (WindowOrder order)
 
void setOption (AreaOption option, bool on=true)
 If on is true, option is enabled on the MDI area; otherwise it is disabled.
 
bool testOption (AreaOption opton) const
 Returns true if option is enabled; otherwise returns false.
 
void setViewMode (ViewMode mode)
 
ViewMode viewMode () const
 

Protected Member Functions

bool event (QEvent *event) override
 
- Protected Member Functions inherited from QMdiArea
bool event (QEvent *event) override
 \reimp
 
bool eventFilter (QObject *object, QEvent *event) override
 \reimp
 
void paintEvent (QPaintEvent *paintEvent) override
 \reimp
 
void childEvent (QChildEvent *childEvent) override
 \reimp
 
void resizeEvent (QResizeEvent *resizeEvent) override
 \reimp
 
void timerEvent (QTimerEvent *timerEvent) override
 \reimp
 
void showEvent (QShowEvent *showEvent) override
 \reimp
 
bool viewportEvent (QEvent *event) override
 \reimp
 
void scrollContentsBy (int dx, int dy) override
 \reimp
 

Additional Inherited Members

- Public Types inherited from QMdiArea
enum  AreaOption { DontMaximizeSubWindowOnActivation = 0x1 }
 This enum describes options that customize the behavior of the QMdiArea. More...
 
enum  WindowOrder { CreationOrder , StackingOrder , ActivationHistoryOrder }
 Specifies the criteria to use for ordering the list of child windows returned by subWindowList(). More...
 
enum  ViewMode { SubWindowView , TabbedView }
 
- Public Slots inherited from QMdiArea
void setActiveSubWindow (QMdiSubWindow *window)
 Activates the subwindow window.
 
void tileSubWindows ()
 Arranges all child windows in a tile pattern.
 
void cascadeSubWindows ()
 Arranges all the child windows in a cascade pattern.
 
void closeActiveSubWindow ()
 Closes the active subwindow.
 
void closeAllSubWindows ()
 Closes all subwindows by sending a QCloseEvent to each window.
 
void activateNextSubWindow ()
 Gives the keyboard focus to another window in the list of child windows.
 
void activatePreviousSubWindow ()
 Gives the keyboard focus to another window in the list of child windows.
 
- Protected Slots inherited from QMdiArea
void setupViewport (QWidget *viewport) override
 This slot is called by QAbstractScrollArea after setViewport() has been called.
 
- Properties inherited from QMdiArea
QBrush background
 the background brush for the workspace
 
WindowOrder activationOrder
 the ordering criteria for subwindow lists
 
ViewMode viewMode
 the way sub-windows are displayed in the QMdiArea.
 

Detailed Description

Definition at line 66 of file mainwindow.h.

Constructor & Destructor Documentation

◆ DockedMdiArea()

DockedMdiArea::DockedMdiArea ( const QString & extension,
QWidget * parent = nullptr )
explicit

Definition at line 120 of file mainwindow.cpp.

Member Function Documentation

◆ event()

bool DockedMdiArea::event ( QEvent * event)
overrideprotected

Definition at line 148 of file mainwindow.cpp.

◆ fileDropped

void DockedMdiArea::fileDropped ( const QString & )
signal

The documentation for this class was generated from the following files: