enum Qt::WindowType
flags Qt::WindowFlags
This enum type is used to specify various window-system properties for the widget. They are fairly unusual but necessary in a few cases. Some of these flags depend on whether the underlying window manager supports them.
The main types are
Constant
Value
Description
Qt::Widget
0x00000000
This is the default type for QWidget. Widgets of this type are child widgets if they have a parent, and independent windows if they have no parent. See also Qt::Window and Qt::SubWindow.
Qt::Window
0x00000001
Indicates that the widget is a window, usually with a window system frame and a title bar, irrespective of whether the widget has a parent or not.
Qt::Dialog
0x00000002 | Window
Indicates that the widget is a window that should be decorated as a dialog (i.e., typically no maximize or minimize buttons in the title bar). This is the default type for QDialog. If you want to use it as a modal dialog, it should be launched from another window, or have a parent and used with the Qt::WA_ShowModal attribute. If you make it modal, the dialog will prevent other top-level windows in the application from getting any input. We refer to a top-level window that has a parent as a secondary window. (See also Qt::WA_GroupLeader.)
Qt::Sheet
0x00000004 | Window
Indicates that the widget is a Macintosh sheet.
Qt::Drawer
0x00000006 | Window
Indicates that the widget is a Macintosh drawer.
Qt::Popup
0x00000008 | Window
Indicates that the widget is a popup top-level window, i.e. that it is modal, but has a window system frame appropriate for popup menus.
Qt::Tool
0x0000000a | Window
Indicates that the widget is a tool window. A tool window is often a small window with a smaller than usual title bar and decoration, typically used for collections of tool buttons. It there is a parent, the tool window will always be kept on top of it. If there isn't a parent, you may consider using Qt::WindowStaysOnTopHint as well. If the window system supports it, a tool window can be decorated with a somewhat lighter frame. It can also be combined with Qt::FramelessWindowHint.
Qt::ToolTip
0x0000000c | Window
Indicates that the widget is a tooltip. This is used internally to implement tooltips.
Qt::SplashScreen
0x0000000e | Window
Indicates that the window is a splash screen. This is the default type for QSplashScreen.
Qt::Desktop
0x00000010 | Window
Indicates that this widget is the desktop. This is the type for QDesktopWidget.
Qt::SubWindow
0x00000012
Indicates that this widget is a child widget, irrespective of whether the widget has a parent or not.