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. How to show a window who has been minimized?
QtWS25 Last Chance

How to show a window who has been minimized?

Scheduled Pinned Locked Moved General and Desktop
9 Posts 2 Posters 2.2k Views
  • 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 Offline
    H Offline
    hualet
    wrote on last edited by
    #1

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

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

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

      (Z(:^

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hualet
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          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
          0
          • H Offline
            H Offline
            hualet
            wrote on last edited by
            #5

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

            1 Reply Last reply
            0
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              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
              0
              • H Offline
                H Offline
                hualet
                wrote on last edited by
                #7

                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
                0
                • sierdzioS Offline
                  sierdzioS Offline
                  sierdzio
                  Moderators
                  wrote on last edited by
                  #8

                  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
                  0
                  • H Offline
                    H Offline
                    hualet
                    wrote on last edited by
                    #9

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

                    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