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. Blocking dialog without dimming/grayOut underlying Mainwindow
Forum Updated to NodeBB v4.3 + New Features

Blocking dialog without dimming/grayOut underlying Mainwindow

Scheduled Pinned Locked Moved Solved General and Desktop
9 Posts 3 Posters 575 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.
  • gde23G Offline
    gde23G Offline
    gde23
    wrote on last edited by
    #1

    Is it somehow possible to have a dialog that is blocking (e.g. through a call of QDialog::exec()), so the Interaction with Mainwindow gets disabled however without dimming the underlying mainwindow?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Why do you want to avoid the visual cue that tells your users that they won't be able to interact with the window while the dialog is opened ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • gde23G Offline
        gde23G Offline
        gde23
        wrote on last edited by
        #3

        The application is as following:

        • In the mainwindow there are some graphs showing data.
        • The dialog allows to chose and run some algorithms that will change the data.
          Therefore the user should be able to directly see the effect of what she/he is doing in the dialog in the mainwindow.
          However it should not be possible to change anything in the mainwindow or open the dialog twice and things like that during the time the dialog is opened.
        mrjjM 1 Reply Last reply
        0
        • gde23G gde23

          The application is as following:

          • In the mainwindow there are some graphs showing data.
          • The dialog allows to chose and run some algorithms that will change the data.
            Therefore the user should be able to directly see the effect of what she/he is doing in the dialog in the mainwindow.
            However it should not be possible to change anything in the mainwindow or open the dialog twice and things like that during the time the dialog is opened.
          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @gde23
          Hi
          just tried on Windows 10 and Linux with xfce.
          I dont get any dimming effect so i did wonder on what platform are you seeing this ?

          1 Reply Last reply
          1
          • gde23G Offline
            gde23G Offline
            gde23
            wrote on last edited by
            #5

            @mrjj
            Hi,
            I'm on Debian with KDE, however I think that when I've been to Windows the last time it looked something similar.
            Its not a huge effekt, but the Mainwindow is getting a bit darker, when calling dialog->exec(); and its not the case for dialog->show();

            mrjjM 1 Reply Last reply
            0
            • gde23G gde23

              @mrjj
              Hi,
              I'm on Debian with KDE, however I think that when I've been to Windows the last time it looked something similar.
              Its not a huge effekt, but the Mainwindow is getting a bit darker, when calling dialog->exec(); and its not the case for dialog->show();

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @gde23
              Ok. I didnt see anything in Win 10. maybe 7 does.
              XFCE does not seem to do it but KDE might.

              I was/wanted checking if the controls would actually go into a disabled state as you could cheat and
              make that paint as normal for selected widgets but im not sure they actually do or who makes this dimmed effect.

              1 Reply Last reply
              1
              • gde23G Offline
                gde23G Offline
                gde23
                wrote on last edited by
                #7

                OK, thx.
                I'll try on Win 10 then first so I can tell if the OS is the reason or there is something else to be considered.

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  The other thing you can also do is to disable what should not be used while your dialog is opened.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  1
                  • gde23G Offline
                    gde23G Offline
                    gde23
                    wrote on last edited by
                    #9

                    @SGaist: Thanks for the hint,.
                    That really might be a good idea, because I see the point why it is not supported by default.

                    1 Reply Last reply
                    0

                    • Login

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