Show dialog / full screen frame mode on the second screen to sing QT / C ++

I have an application with a secondary view, which should be displayed in full screen mode on another monitor (the main application is not included).

Frame frame.showFullScreen(); works fine with frame.showFullScreen();

But how can I say on which screen it should be turned on? Is there a way to determine if a second screen can also be accessed?

+6
c ++ user-interface qt multiple-monitors
source share
1 answer

You can get screen information from QDesktopWidget . To move the window to a specific screen, you can do something like this:

 QRect screenres = QApplication::desktop()->screenGeometry(screenNumber); widget->move(QPoint(screenres.x(), screenres.y())); 
+12
source share

All Articles