Solved QMessageBox location
-
When my application presents a message with QMessageBox, the message is centered over my app, which is just how I want it. However, on a multiple monitor system, if I drag my application to a different monitor, messageboxes appear on the original monitor, not the monitor the program was dragged to. Is there a way to lock my messageboxes to current location of the application?
-
Hi,
What version of Qt are you using ?
On what OS ?
If Linux: what distribution ? Desktop Environment ?
With which compiler ? -
@SGaist 5.6 and 5.10.1. All OSs (Win7/8/10),OS X, Linux. I'm not currently using Qt 5.6, but the exhibited behavior is the same.
-
Can you show a minimal sample application that reproduces that behaviour ?
-
Per your suggestion, I built a simple application and qmessagebox behaved exactly as it should when I dragged the program to different monitors. So, I went back into my problem code and discovered the behavior was self-induced.
-
Glad you found out !
Could you explain what happened in your code to trigger this ?