QXcbWindowFunctions Class
The QXcbWindowFunctions class is an inline class containing miscellaneous functionality for xcb window specific functionality. More...
| Header: | #include <QXcbWindowFunctions> |
Public Types
| typedef | SetWmWindowIconText |
| typedef | SetWmWindowRole |
| typedef | VisualId |
| enum | WmWindowType { Normal, Desktop, Dock, Toolbar, Menu, …, KdeOverride } |
Detailed Description
A common usage pattern is as follows:
int main(int argc, char **argv) { QApplication app(argc, argv); QPushButton topLevelWidget("Hello World!"); topLevelWidget.winId(); //have to create the QWindow QWindow *tlwWindow = topLevelWidget.windowHandle(); QXcbWindowFunctions::setWmWindowType(tlwWindow, QXcbWindowFunctions::Dock); topLevelWidget.show(); return app.exec(); }
Note: There is no binary compatibility guarantee for this class, meaning that an application using it is only guaranteed to work with the Qt version it was developed against.
Member Type Documentation
typedef QXcbWindowFunctions::SetWmWindowIconText
This is the typedef for the function returned by QGuiApplication::platformFunction when passed the value returned by setWmWindowIconTextIdentifier().
typedef QXcbWindowFunctions::SetWmWindowRole
This is the typedef for the function returned by QGuiApplication::platformFunction when passed the value returned by setWmWindowRoleIdentifier().
This typedef was introduced in Qt 5.6.2.
typedef QXcbWindowFunctions::VisualId
This is the typedef for the function returned by QGuiApplication::platformFunction when passed the value returned by visualIdIdentifier().
enum QXcbWindowFunctions::WmWindowType
This enum represents the supported WM_WINDOW_TYPE atoms.
| Constant | Value |
|---|---|
QXcbWindowFunctions::Normal | 0x000001 |
QXcbWindowFunctions::Desktop | 0x000002 |
QXcbWindowFunctions::Dock | 0x000004 |
QXcbWindowFunctions::Toolbar | 0x000008 |
QXcbWindowFunctions::Menu | 0x000010 |
QXcbWindowFunctions::Utility | 0x000020 |
QXcbWindowFunctions::Splash | 0x000040 |
QXcbWindowFunctions::Dialog | 0x000080 |
QXcbWindowFunctions::DropDownMenu | 0x000100 |
QXcbWindowFunctions::PopupMenu | 0x000200 |
QXcbWindowFunctions::Tooltip | 0x000400 |
QXcbWindowFunctions::Notification | 0x000800 |
QXcbWindowFunctions::Combo | 0x001000 |
QXcbWindowFunctions::Dnd | 0x002000 |
QXcbWindowFunctions::KdeOverride | 0x004000 |