Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
WindowCreationData Class Reference

Window creation code. More...

+ Collaboration diagram for WindowCreationData:

Public Types

enum  Flags { ForceChild = 0x1 , ForceTopLevel = 0x2 }
 
using WindowData = QWindowsWindowData
 

Public Member Functions

void fromWindow (const QWindow *w, const Qt::WindowFlags flags, unsigned creationFlags=0)
 
WindowData create (const QWindow *w, const WindowData &data, QString title) const
 
void applyWindowFlags (HWND hwnd) const
 
void initialize (const QWindow *w, HWND h, bool frameChange, qreal opacityLevel) const
 

Public Attributes

Qt::WindowFlags flags
 
HWND parentHandle = nullptr
 
Qt::WindowType type = Qt::Widget
 
unsigned style = 0
 
unsigned exStyle = 0
 
bool topLevel = false
 
bool popup = false
 
bool dialog = false
 
bool tool = false
 
bool embedded = false
 
bool hasAlpha = false
 

Detailed Description

Window creation code.

This struct gathers all information required to create a window. Window creation is split in 3 steps:

\list

The reason for this split is to also enable changing the QWindowFlags by calling:

\list

Contains the window creation code formerly in qwidget_win.cpp.

See also
QWindowCreationContext

Definition at line 585 of file qwindowswindow.cpp.

Member Typedef Documentation

◆ WindowData

Member Enumeration Documentation

◆ Flags

Enumerator
ForceChild 
ForceTopLevel 

Definition at line 588 of file qwindowswindow.cpp.

Member Function Documentation

◆ applyWindowFlags()

void WindowCreationData::applyWindowFlags ( HWND hwnd) const
inline

Definition at line 960 of file qwindowswindow.cpp.

References debugWinExStyle(), debugWinStyle(), exStyle, qCDebug, and style.

+ Here is the call graph for this function:

◆ create()

◆ fromWindow()

void WindowCreationData::fromWindow ( const QWindow * w,
const Qt::WindowFlags flags,
unsigned creationFlags = 0 )

◆ initialize()

void WindowCreationData::initialize ( const QWindow * w,
HWND h,
bool frameChange,
qreal opacityLevel ) const

Definition at line 979 of file qwindowswindow.cpp.

References Qt::CustomizeWindowHint, qWarning, Qt::ToolTip, topLevel, updateGLWindowSettings(), Qt::WindowCloseButtonHint, Qt::WindowStaysOnBottomHint, Qt::WindowStaysOnTopHint, and Qt::WindowTitleHint.

+ Here is the call graph for this function:

Member Data Documentation

◆ dialog

bool WindowCreationData::dialog = false

Definition at line 602 of file qwindowswindow.cpp.

Referenced by fromWindow().

◆ embedded

bool WindowCreationData::embedded = false

Definition at line 604 of file qwindowswindow.cpp.

Referenced by create(), and fromWindow().

◆ exStyle

unsigned WindowCreationData::exStyle = 0

Definition at line 599 of file qwindowswindow.cpp.

Referenced by applyWindowFlags(), create(), and fromWindow().

◆ flags

Qt::WindowFlags WindowCreationData::flags

Definition at line 595 of file qwindowswindow.cpp.

Referenced by create().

◆ hasAlpha

bool WindowCreationData::hasAlpha = false

Definition at line 605 of file qwindowswindow.cpp.

◆ parentHandle

HWND WindowCreationData::parentHandle = nullptr

Definition at line 596 of file qwindowswindow.cpp.

Referenced by create(), and fromWindow().

◆ popup

bool WindowCreationData::popup = false

Definition at line 601 of file qwindowswindow.cpp.

Referenced by fromWindow().

◆ style

unsigned WindowCreationData::style = 0

Definition at line 598 of file qwindowswindow.cpp.

Referenced by applyWindowFlags(), create(), and fromWindow().

◆ tool

bool WindowCreationData::tool = false

Definition at line 603 of file qwindowswindow.cpp.

Referenced by fromWindow().

◆ topLevel

bool WindowCreationData::topLevel = false

Definition at line 600 of file qwindowswindow.cpp.

Referenced by create(), fromWindow(), and initialize().

◆ type

Qt::WindowType WindowCreationData::type = Qt::Widget

Definition at line 597 of file qwindowswindow.cpp.


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