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
QWindowsDialogHelperBase< BaseClass > Class Template Referenceabstract

Helper for native Windows dialogs. More...

#include <qwindowsdialoghelpers.h>

Inheritance diagram for QWindowsDialogHelperBase< BaseClass >:
Collaboration diagram for QWindowsDialogHelperBase< BaseClass >:

Public Types

using QWindowsNativeDialogBasePtr = QSharedPointer<QWindowsNativeDialogBase>

Public Member Functions

 ~QWindowsDialogHelperBase ()
void exec () override
bool show (Qt::WindowFlags windowFlags, Qt::WindowModality windowModality, QWindow *parent) override
void hide () override
virtual bool supportsNonModalDialog (const QWindow *=nullptr) const
Public Member Functions inherited from BaseClass
 BaseClass ()
 BaseClass ()

Protected Member Functions

 QWindowsDialogHelperBase ()=default
QWindowsNativeDialogBasenativeDialog () const
bool hasNativeDialog () const
void timerEvent (QTimerEvent *) override

Private Member Functions

virtual QWindowsNativeDialogBasecreateNativeDialog ()=0

Detailed Description

template<class BaseClass>
class QWindowsDialogHelperBase< BaseClass >

Helper for native Windows dialogs.

Provides basic functionality and introduces new virtuals. The native dialog is created in setVisible_sys() since then modality and the state of DontUseNativeDialog is known.

Modal dialogs are then run by exec(). Non-modal dialogs are shown using a separate thread started in show() should they support it.

See also
QWindowsDialogThread, QWindowsNativeDialogBase

Definition at line 30 of file qwindowsdialoghelpers.h.

Member Typedef Documentation

◆ QWindowsNativeDialogBasePtr

template<class BaseClass>
using QWindowsDialogHelperBase< BaseClass >::QWindowsNativeDialogBasePtr = QSharedPointer<QWindowsNativeDialogBase>

Definition at line 34 of file qwindowsdialoghelpers.h.

Constructor & Destructor Documentation

◆ ~QWindowsDialogHelperBase()

Definition at line 169 of file qwindowsdialoghelpers.cpp.

References hide().

Here is the call graph for this function:

◆ QWindowsDialogHelperBase()

Member Function Documentation

◆ createNativeDialog()

◆ exec()

template<class BaseClass>
void QWindowsDialogHelperBase< BaseClass >::exec ( )
override

Definition at line 308 of file qwindowsdialoghelpers.cpp.

References nativeDialog().

Here is the call graph for this function:

◆ hasNativeDialog()

template<class BaseClass>
bool QWindowsDialogHelperBase< BaseClass >::hasNativeDialog ( ) const
inlineprotected

Definition at line 48 of file qwindowsdialoghelpers.h.

◆ hide()

template<class BaseClass>
void QWindowsDialogHelperBase< BaseClass >::hide ( )
override

Definition at line 298 of file qwindowsdialoghelpers.cpp.

Referenced by ~QWindowsDialogHelperBase().

Here is the caller graph for this function:

◆ nativeDialog()

template<class BaseClass>
QWindowsNativeDialogBase * QWindowsDialogHelperBase< BaseClass >::nativeDialog ( ) const
protected

Definition at line 193 of file qwindowsdialoghelpers.cpp.

Referenced by exec().

Here is the caller graph for this function:

◆ show()

template<class BaseClass>
bool QWindowsDialogHelperBase< BaseClass >::show ( Qt::WindowFlags windowFlags,
Qt::WindowModality windowModality,
QWindow * parent )
override

Definition at line 249 of file qwindowsdialoghelpers.cpp.

◆ supportsNonModalDialog()

template<class BaseClass>
virtual bool QWindowsDialogHelperBase< BaseClass >::supportsNonModalDialog ( const QWindow * = nullptr) const
inlinevirtual

◆ timerEvent()

template<class BaseClass>
void QWindowsDialogHelperBase< BaseClass >::timerEvent ( QTimerEvent * )
overrideprotected

Definition at line 203 of file qwindowsdialoghelpers.cpp.


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