Qt Forum

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

    [Solved] Qt 5.4.0 RC: How to restore QMainWindow when app's dock icon is clicked on Mac OS X?

    General and Desktop
    2
    2
    957
    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.
    • R
      rushmore last edited by

      I guess a more general question is how to detect when app's dock icon is clicked? I've been using this solution without problem:
      http://stackoverflow.com/questions/15143369/qt-on-os-x-how-to-detect-clicking-the-app-dock-icon

      But Qt5.4.0 RC broke it. It no longer works. Does anyone have a solution for that? Why can't Qt behave like that to begin with?

      Thanks,
      Rushmore

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        You're welcome !

        Now that you have it running properly, please update the thread title prepending [solved] so other forum users may know a solution has been found :)

        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 Reply Quote 0
        • First post
          Last post