Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    How to show a window who has been minimized?

    General and Desktop
    2
    9
    1746
    Loading More Posts
    • 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.
    • H
      hualet last edited by

      calling show() on it will pop it up on KDE, but doesn't work on other WMs, any suggestion?

      1 Reply Last reply Reply Quote 0
      • sierdzio
        sierdzio Moderators last edited by

        show() itself should work. You can try combining it with raise():
        @
        show();
        raise();
        @

        (Z(:^

        1 Reply Last reply Reply Quote 0
        • H
          hualet last edited by

          hi, sierdzio. I've tried that, didn't work.

          1 Reply Last reply Reply Quote 0
          • sierdzio
            sierdzio Moderators last edited by

            Hm, then it begins to look like a bug. Are you using the newest Qt version (5.4)?

            Another idea: please try with showNormal() "link":http://doc.qt.io/qt-5/qwidget.html#showNormal.

            (Z(:^

            1 Reply Last reply Reply Quote 0
            • H
              hualet last edited by

              Just tried on ubuntu, using Qt 5.4, either showNormal() or raise() worked :(

              1 Reply Last reply Reply Quote 0
              • sierdzio
                sierdzio Moderators last edited by

                Sorry, I am confused. You say it worked, but end your sentence with a sad emoticon. Is the problem solved now?

                (Z(:^

                1 Reply Last reply Reply Quote 0
                • H
                  hualet last edited by

                  sierdzio, I'm very sorry, I mean both of them didn't work, I should use the phrase neither...nor... instead of either...or..., poor English...sorry.

                  1 Reply Last reply Reply Quote 0
                  • sierdzio
                    sierdzio Moderators last edited by

                    No worries, I am not angry :-) I just did not understand what you've meant.

                    So I think it is becoming clear now, that this indeed is a Qt bug. Looks like it is a known issue, too: "link":https://bugreports.qt-project.org/browse/QTBUG-31117. The report claims that this problem is fixed in 5.4.0. I think your case proves that to be wrong. I'll add a comment there, but it would be best if you joined the discussion there and pasted exact steps to reproduce the issue and the exact configuration of your system (OS, Qt version, compiler, etc.).

                    (Z(:^

                    1 Reply Last reply Reply Quote 0
                    • H
                      hualet last edited by

                      hi, sierdzio, I've followed the link and posted a comment there :)

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post