I've multiple monitors attached to my computer. I want QDialog to be displayed in the monitor from which I launch the executable. Currently the QDialog is displayed randomly in any monitor(mostly in primary monitor).
Is this possible to do?
I've multiple monitors attached to my computer. I want QDialog to be displayed in the monitor from which I launch the executable. Currently the QDialog is displayed randomly in any monitor(mostly in primary monitor).
Is this possible to do?
You can save the number of the monitor at start time, and then, when displaying the dialog, just ensure it is shown there.
My code goes like this..
In the QRect I'm getting the monitor size from which the executable is launched. But when the QDialog is displayed, sometimes it gets displayed in other screens. How to ensure that QDialog gets displayed in the same monitor.Qt Code:
To copy to clipboard, switch view to plain text mode
Read about QDesktopWidget
Bookmarks