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. Can't restore app from dock icon on Mac
Forum Updated to NodeBB v4.3 + New Features

Can't restore app from dock icon on Mac

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.1k Views 1 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.
  • W Offline
    W Offline
    wibstr
    wrote on last edited by
    #1

    On OSX Mavericks with Qt 5.2.1, I can't seem to restore my MainWindow after calling hide(). When hide() is called, the application is minimized to the dock icon. I would like to be able to show() the application when the user clicks on the icon, but the OS doesn't appear to deliver any events to my app when the icon is clicked (neither does it restore my main window). I set a breakpoint in my QApplication::event() override, but it's never called.

    1 Reply Last reply
    0
    • W Offline
      W Offline
      wibstr
      wrote on last edited by
      #2

      Is there no way to get events from the OSX dock icon?

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

        Hi,

        With 5.2 and 5.3 not, however there's a fix for that underway for the next version

        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

        • Login

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