Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Make modal dialogs moveable again?
Forum Updated to NodeBB v4.3 + New Features

Make modal dialogs moveable again?

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 4 Posters 1.3k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    stryga42
    wrote on last edited by stryga42
    #1

    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?

    JonBJ 1 Reply Last reply
    0
    • S stryga42

      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?

      JonBJ Online
      JonBJ Online
      JonB
      wrote on last edited by JonB
      #3

      @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.

      S 1 Reply Last reply
      2
      • Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by Christian Ehrlicher
        #2

        @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.

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        1 Reply Last reply
        2
        • S stryga42

          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?

          JonBJ Online
          JonBJ Online
          JonB
          wrote on last edited by JonB
          #3

          @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.

          S 1 Reply Last reply
          2
          • JonBJ JonB

            @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.

            S Offline
            S Offline
            stryga42
            wrote on last edited by
            #4

            @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!

            JKSHJ 1 Reply Last reply
            2
            • S stryga42

              @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!

              JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #5

              @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/

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              1 Reply Last reply
              1

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved