Solved Make modal dialogs moveable again?
-
Some time ago Qt changed the default behavior of modal dialogs - they are not moveable any more but fixed centered in front of their parent. I tried to get accustomed to this behavior - but no, I would like to allow the user to move the dialog around. Greying out the parent window is fine but in some situations you want to check something in the background window while in the dialog is active.
Is there a way to restore the old behavior, at least for specific dialogs?
I am working on linux (Ubuntu) with Qt5.15.Btw, when using floating QDockWidgets they are not greyed out while an application modal dialog is active. If you click it, it flashes in front of the model dialog for a fraction of a second, then the focus returns to the dialog. Although not a functional bug this behavior doesn"t look professional. Is this only annoying me or should this be improved?
-
@stryga42 said in Make modal dialogs moveable again?:
Some time ago Qt changed [...]
I am working on linux (Ubuntu)Did you move to GNOME desktop from Unity? I think this is desktop window manager behaviour. It also seems to drag the back window in the same place if you drag the modal in front of it, IIRC.
-
@stryga42 said in Make modal dialogs moveable again?:
stryga42 3 minutes ago
Some time ago Qt changed the default behavior of modal dialogs - they are not moveable any more but fixed centered in front of their parent.
That's not correct, Qt did not change the behavior in any way. Please provide a minimal, compilable example so we can take a look on it.
-
@stryga42 said in Make modal dialogs moveable again?:
Some time ago Qt changed [...]
I am working on linux (Ubuntu)Did you move to GNOME desktop from Unity? I think this is desktop window manager behaviour. It also seems to drag the back window in the same place if you drag the modal in front of it, IIRC.
-
@JonB said in Make modal dialogs moveable again?:
Did you move to GNOME desktop from Unity?
I never thought about this possibility, but you are right:
echo $XDG_CURRENT_DESKTOP
says ubuntu:GNOME . It seems I changed from Unity to GNOME without noticing it :-/
And, yes, trying to move the dialog really hard moves the parent window, even dragging it out of maximized mode.So this is the wrong place for this question, I guess. This topic is discussed elsewhere, like https://askubuntu.com/questions/109321/how-to-detach-modal-dialogs-from-main-window-popup-dialogs-attached-to-window-t
I'll mark it solved here.Many thanks!
-
@stryga42 said in Make modal dialogs moveable again?:
It seems I changed from Unity to GNOME without noticing it :-/
It most likely happened when you updated Ubuntu: https://arstechnica.com/information-technology/2017/04/ubuntu-unity-is-dead-desktop-will-switch-back-to-gnome-next-year/