How to open 2 different window at same time on 2 different monitor?
-
I have to do poc for opening 2 different window on 2 different monitor from one cpu. How to do this?
I actually don't know
Is it possible to open it at same time? If yes how?
Aim is that one window will show live graph if sensor connected and if not then just show graph without data on first monitor.
And at same time in second monitor second window will allow to select sensor and it also allow to reduce noise in sensor.
So at combined purpose is to check the sensor noise while connect in original product.
How to do it? How qt can help with one exe application
To serve this purpose on 2 separate monitor at same time when start the qt application?How I can set that window size such that it directly fit into full screen?
-
Just using a qdialog and the object QApplication::screens() to know how much screens are available, which resolutions they have etc.
The monitor are related at the same machine and same user or two different machines?@mrdebug same machine same user
-
@mrdebug same machine same user
@Qt-embedded-developer said in How to open 2 different window at same time on 2 different monitor?:
same machine same user
Use the following code to list your screens and move your windows accordingly.
QList<QScreen *> screens=QGuiApplication::screens(); for(auto screen : screens) { qDebug()<< screen->name()<<screen->availableGeometry(); }
-
@Qt-embedded-developer said in How to open 2 different window at same time on 2 different monitor?:
same machine same user
Use the following code to list your screens and move your windows accordingly.
QList<QScreen *> screens=QGuiApplication::screens(); for(auto screen : screens) { qDebug()<< screen->name()<<screen->availableGeometry(); }
@mpergand will this code open first window in first monitor and second window on second monitor?
-
@mpergand will this code open first window in first monitor and second window on second monitor?
@Qt-embedded-developer said in How to open 2 different window at same time on 2 different monitor?:
will this code open first window in first monitor and second window on second monitor?
That open nothing, that's your job :)
Post here the print of my code above.