KanoopGuiQt 1.3.0
Qt GUI utility library
Loading...
Searching...
No Matches
MdiSubWindow Class Reference

QMdiSubWindow subclass that persists geometry and emits a closing() signal. More...

#include <mdisubwindow.h>

+ Inheritance diagram for MdiSubWindow:
+ Collaboration diagram for MdiSubWindow:

Public Slots

virtual void onPreferencesChanged ()
 Called when application preferences change; override to react.
 

Signals

void closing ()
 Emitted just before the sub-window closes.
 

Public Member Functions

 MdiSubWindow (QWidget *parent=nullptr)
 Construct with an optional parent.
 
int type () const
 Return the application-defined sub-window type integer.
 
void setType (int value)
 Set the application-defined sub-window type integer.
 

Detailed Description

QMdiSubWindow subclass that persists geometry and emits a closing() signal.

MdiSubWindow saves and restores its position and size via GuiSettings and emits closing() before the window is destroyed so that parent windows can clean up. An integer type() property allows the application to categorize open sub-windows.

Definition at line 13 of file mdisubwindow.h.

Constructor & Destructor Documentation

◆ MdiSubWindow()

MdiSubWindow::MdiSubWindow ( QWidget *  parent = nullptr)
explicit

Construct with an optional parent.

Parameters
parentOptional QWidget parent

Member Function Documentation

◆ setType()

void MdiSubWindow::setType ( int  value)
inline

Set the application-defined sub-window type integer.

Parameters
valueSub-window type value

Definition at line 33 of file mdisubwindow.h.

◆ type()

int MdiSubWindow::type ( ) const
inline

Return the application-defined sub-window type integer.

Returns
Sub-window type value

Definition at line 27 of file mdisubwindow.h.


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