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. Work around for a bug where window moves to the background

Work around for a bug where window moves to the background

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 4 Posters 616 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.
  • O Offline
    O Offline
    Omni_Philm
    wrote on last edited by aha_1980
    #1

    Hello all,

    I have this bug that has been difficult for me to solve. I have a feeling it is something simple but I am not sure what it is.

    I created a small program that demos the bug which can be downloaded here: https://www.dropbox.com/s/g5w1man5g6xm8a4/doneBugDemo.zip?dl=0

    I would upload to the forum directly but I do not have sufficient priviledges to do so.

    Anyways, in the demo, I have 2 forms. The first displays infomation to the user. The user is able to edit this info via a text box. When clicked on the text box, another screen comes up allowing to user to edit the value. On the second screen, if the user changes the value and then presses done, a modal pop up will come up prompting the user if they would like to save the value they entered.

    Now, here is where the bug happens. The second form decides to go in the background. This is an incorrect operation. What should happen is that the pop up comes up above the second window and the second window should remain above the first window until the user is finished.

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

      Hi,

      What version of Qt are you using ?
      On what OS is it happening ?

      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
      0
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi
        Tested on Windows 10. The second form stays on top of first and "Confirm save" is on top.

        1 Reply Last reply
        0
        • O Offline
          O Offline
          Omni_Philm
          wrote on last edited by
          #4

          Hello all,

          I am running the program on Linux. Specially Linux mint latest version as of this writing. I am using the version of Qt that comes with the distro which I believe is 5.9

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

            Can you check that with a more recent version of Qt ?
            The current LTS is 5.12.4 and latest release is 5.13.

            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
            0
            • O Offline
              O Offline
              Omni_Philm
              wrote on last edited by
              #6

              @SGaist Hello,

              Thank you for your question. I have not checked with a more recent version of Qt simply becuase the project requirements dictate that I use Qt 5.9

              jsulmJ 1 Reply Last reply
              0
              • O Omni_Philm

                @SGaist Hello,

                Thank you for your question. I have not checked with a more recent version of Qt simply becuase the project requirements dictate that I use Qt 5.9

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Omni_Philm You still can try with newer Qt version to see whether it is a bug in Qt which already was fixed in a newer version. Then maybe you can find the bug in Qt bugtracker and apply the patch to Qt 5.9

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                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