A working solution fo rQDialog restoreGeometry bugs?
-
So some combination of recent X11 / Qt update (on Archlinux) broke QDialog::restoreGeometry functionality..
The window (QDialog in this case) will resize properly but will not move to the proper location.
Of course if I check the pos() it will happily LIE and report what I expect, except that it isn't correct.
The workaround I've used so far is to create (about 100th such Qt bug workaround already) a singleShot timer and restoreGeometry on the timer event. The problem with this is of course that it's super ugly because the dialog opens at the center and then pops to another location creating garbage UX.
Does anyone know a working fix here? Something like "create the window resources but don't show it, then restore the geometry and then when that actually worked then show it"
Thanks
-
Hi,
Please give more details about "some combination of recent X11/Qt update". Otherwise it's just shots in the dark.
-
One thing you can do is retry with earlier version of Qt to find out if that's a Qt issue.
If not, then go back with Xorg. -
Nah, not going to waste time trouble shooting. That's just extra work without any benefit..
So I did workaround the problem, seems using a QMainWindow can create a viable alternative (with some programming to recreate the (modal) dialog semantics)