blob: f0e5fb59f0cbc00854ca717d98f7829d79cc29db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//! [0]
#ifdef Q_WS_X11
void qt_x11_wait_for_window_manager(QWidget *widget);
#endif
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
...
window.show();
#ifdef Q_WS_X11
qt_x11_wait_for_window_manager(&window);
#endif
...
return app.exec();
}
//! [0]
|