I am trying to write an application that will use multiple screens, if available. I know how to open windows on target screens, but QApplication::desktop()->numScreens() returns 1, even on a 4 screen setup. In examining the Qt (3 and 4) source code, I see that the private attribute QDesktopWidget::d is only initialized (QDesktopPrivate::init()) in resizeEvent(). I have tried sending a resize event, but no joy.
For now, I will use ScreenCount(QPaintDevice::x11AppDisplay()) to get the number of screens, but I am curious as to how to get the QDesktopWidget::init() method called.
Hi Dear
Would you tell me how can i affecte a widget to a spesific screen please ?
Bookmarks