Sample code demonstrating multi monitor support in Qt
-
Hi All,
I need a sample code which demonstrates an application using multi monitor support on desktop.
Basically the application's main window should run on primary screen and its child widgets on other secondary screens.
-
See "QDesktopWidget":http://qt-project.org/doc/qt-5/qdesktopwidget.html and "QScreen":http://qt-project.org/doc/qt-5/qscreen.html.
-
QScreen and friends will not really help you here since they represent displays that are connected. AFAIK there is nothing that could tell you the potential maximum number of screens.