![]() |
Qt 6.x
The Qt SDK
|
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 |
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.
Definition at line 580 of file qwindowswindow.cpp.
Definition at line 582 of file qwindowswindow.cpp.
| Enumerator | |
|---|---|
| ForceChild | |
| ForceTopLevel | |
Definition at line 583 of file qwindowswindow.cpp.
|
inline |
Definition at line 949 of file qwindowswindow.cpp.
References debugWinExStyle(), debugWinStyle(), exStyle, qCDebug, and style.
Here is the call graph for this function:
|
inline |
Definition at line 861 of file qwindowswindow.cpp.
References calcPosition(), context, defaultWindowHeight, defaultWindowWidth, embedded, exStyle, flags, frameGeometry(), Qt::FramelessWindowHint, QScreen::geometry, QPlatformWindow::initialGeometry(), QWindowsContext::instance(), invisibleMargins(), QWindowsContext::isDarkMode(), QString::isEmpty(), QWindowsBaseWindow::isRtlLayout(), parentHandle, pos, QWindowsGeometryHint::positionIncludesFrame(), qAppName(), qCDebug, qErrnoWarning(), rect, QWindowsContext::registerWindowClass(), screen, QWindowsWindow::setDarkBorderToWindow(), QWindowsContext::setWindowCreationContext(), shouldApplyDarkFrame(), style, title, topLevel, QString::utf16(), windowClassName, and Qt::WindowTitleHint.
Referenced by QWindowsWindowData::create().
Here is the call graph for this function:
Here is the caller graph for this function:| void WindowCreationData::fromWindow | ( | const QWindow * | w, |
| const Qt::WindowFlags | flags, | ||
| unsigned | creationFlags = 0 |
||
| ) |
Definition at line 718 of file qwindowswindow.cpp.
References Qt::Dialog, dialog, Qt::Drawer, embedded, QWindowsWindow::embeddedNativeParentHandleProperty, exStyle, fixTopLevelWindowFlags(), ForceChild, ForceTopLevel, Qt::FramelessWindowHint, QWindowsBaseWindow::handleOf(), QWindowsIntegration::instance(), QVariant::isValid(), QGuiApplication::layoutDirection, Qt::MSWindowsFixedSizeDialogHint, QWindowsIntegration::options(), parentHandle, Qt::Popup, popup, qEnvironmentVariableIntValue(), Qt::RightToLeft, QWindowsIntegration::RtlEnabled, Qt::Sheet, shouldShowMaximizeButton(), Qt::SplashScreen, style, Qt::Tool, tool, Qt::ToolTip, topLevel, QVariant::value(), Qt::Window, Qt::WindowCloseButtonHint, Qt::WindowContextHelpButtonHint, Qt::WindowMinimizeButtonHint, Qt::WindowStaysOnTopHint, Qt::WindowSystemMenuHint, Qt::WindowTitleHint, Qt::WindowTransparentForInput, and Qt::WindowType_Mask.
Referenced by QWindowsWindowData::create().
Here is the call graph for this function:
Here is the caller graph for this function:| void WindowCreationData::initialize | ( | const QWindow * | w, |
| HWND | h, | ||
| bool | frameChange, | ||
| qreal | opacityLevel | ||
| ) | const |
Definition at line 968 of file qwindowswindow.cpp.
References Qt::CustomizeWindowHint, qWarning, Qt::ToolTip, topLevel, updateGLWindowSettings(), Qt::WindowCloseButtonHint, Qt::WindowStaysOnBottomHint, Qt::WindowStaysOnTopHint, and Qt::WindowTitleHint.
Referenced by QWindowsWindowData::create().
Here is the call graph for this function:
Here is the caller graph for this function:| bool WindowCreationData::dialog = false |
Definition at line 597 of file qwindowswindow.cpp.
Referenced by fromWindow().
| bool WindowCreationData::embedded = false |
Definition at line 599 of file qwindowswindow.cpp.
Referenced by create(), and fromWindow().
| unsigned WindowCreationData::exStyle = 0 |
Definition at line 594 of file qwindowswindow.cpp.
Referenced by applyWindowFlags(), create(), and fromWindow().
| Qt::WindowFlags WindowCreationData::flags |
Definition at line 590 of file qwindowswindow.cpp.
Referenced by create().
| bool WindowCreationData::hasAlpha = false |
Definition at line 600 of file qwindowswindow.cpp.
| HWND WindowCreationData::parentHandle = nullptr |
Definition at line 591 of file qwindowswindow.cpp.
Referenced by create(), and fromWindow().
| bool WindowCreationData::popup = false |
Definition at line 596 of file qwindowswindow.cpp.
Referenced by fromWindow().
| unsigned WindowCreationData::style = 0 |
Definition at line 593 of file qwindowswindow.cpp.
Referenced by applyWindowFlags(), create(), and fromWindow().
| bool WindowCreationData::tool = false |
Definition at line 598 of file qwindowswindow.cpp.
Referenced by fromWindow().
| bool WindowCreationData::topLevel = false |
Definition at line 595 of file qwindowswindow.cpp.
Referenced by create(), fromWindow(), and initialize().
| Qt::WindowType WindowCreationData::type = Qt::Widget |
Definition at line 592 of file qwindowswindow.cpp.