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>.
|
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 585 of file qwindowswindow.cpp.
Definition at line 587 of file qwindowswindow.cpp.
Enumerator | |
---|---|
ForceChild | |
ForceTopLevel |
Definition at line 588 of file qwindowswindow.cpp.
|
inline |
Definition at line 960 of file qwindowswindow.cpp.
References debugWinExStyle(), debugWinStyle(), exStyle, qCDebug, and style.
|
inline |
Definition at line 873 of file qwindowswindow.cpp.
References calcPosition(), context, Qt::Dark, defaultWindowHeight, defaultWindowWidth, embedded, exStyle, flags, QWindowsWindowData::flags, frameGeometry(), Qt::FramelessWindowHint, QScreen::geometry, QPlatformWindow::initialGeometry(), QWindowsContext::instance(), QWindowsTheme::instance(), invisibleMargins(), QString::isEmpty(), QWindowsBaseWindow::isRtlLayout(), parentHandle, pos, QWindowsGeometryHint::positionIncludesFrame(), qAppName(), qCDebug, qErrnoWarning(), rect, screen, QWindowsWindow::setDarkBorderToWindow(), shouldApplyDarkFrame(), style, title, topLevel, QString::utf16(), windowClassName, and Qt::WindowTitleHint.
void WindowCreationData::fromWindow | ( | const QWindow * | w, |
const Qt::WindowFlags | flags, | ||
unsigned | creationFlags = 0 ) |
Definition at line 723 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, 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().
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.
bool WindowCreationData::dialog = false |
Definition at line 602 of file qwindowswindow.cpp.
Referenced by fromWindow().
bool WindowCreationData::embedded = false |
Definition at line 604 of file qwindowswindow.cpp.
Referenced by create(), and fromWindow().
unsigned WindowCreationData::exStyle = 0 |
Definition at line 599 of file qwindowswindow.cpp.
Referenced by applyWindowFlags(), create(), and fromWindow().
Qt::WindowFlags WindowCreationData::flags |
Definition at line 595 of file qwindowswindow.cpp.
Referenced by create().
bool WindowCreationData::hasAlpha = false |
Definition at line 605 of file qwindowswindow.cpp.
HWND WindowCreationData::parentHandle = nullptr |
Definition at line 596 of file qwindowswindow.cpp.
Referenced by create(), and fromWindow().
bool WindowCreationData::popup = false |
Definition at line 601 of file qwindowswindow.cpp.
Referenced by fromWindow().
unsigned WindowCreationData::style = 0 |
Definition at line 598 of file qwindowswindow.cpp.
Referenced by applyWindowFlags(), create(), and fromWindow().
bool WindowCreationData::tool = false |
Definition at line 603 of file qwindowswindow.cpp.
Referenced by fromWindow().
bool WindowCreationData::topLevel = false |
Definition at line 600 of file qwindowswindow.cpp.
Referenced by create(), fromWindow(), and initialize().
Qt::WindowType WindowCreationData::type = Qt::Widget |
Definition at line 597 of file qwindowswindow.cpp.