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. MacOs: How to show a Folder Menu PopUp in window title bar
Qt 6.11 is out! See what's new in the release blog

MacOs: How to show a Folder Menu PopUp in window title bar

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 523 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.
  • S Offline
    S Offline
    stefanwoe
    wrote on last edited by
    #1

    In Qt Creator (as on many other Applications) if we hold the Command key and klick the mouse button in the Title bar of the application a window a popup menu will appear where we can choose and open one of the parent folders in the Finder:

    a1634430-8eff-4910-99f1-1505c8277f50-image.png

    How can I add such a popUp Menu to my application (i.e. to the mdi sample)?

    M 1 Reply Last reply
    0
    • S stefanwoe

      In Qt Creator (as on many other Applications) if we hold the Command key and klick the mouse button in the Title bar of the application a window a popup menu will appear where we can choose and open one of the parent folders in the Finder:

      a1634430-8eff-4910-99f1-1505c8277f50-image.png

      How can I add such a popUp Menu to my application (i.e. to the mdi sample)?

      M Offline
      M Offline
      mpergand
      wrote on last edited by mpergand
      #2

      @stefanwoe
      You have to set a valid file path to your window

      void setWindowFilePath(const QString &filePath)
      Additionally, on macOS, this has an added benefit that it sets the proxy icon for the window, assuming that the file path exists.

      S 1 Reply Last reply
      2
      • M mpergand

        @stefanwoe
        You have to set a valid file path to your window

        void setWindowFilePath(const QString &filePath)
        Additionally, on macOS, this has an added benefit that it sets the proxy icon for the window, assuming that the file path exists.

        S Offline
        S Offline
        stefanwoe
        wrote on last edited by
        #3

        @mpergand Thanks - this works as expected for the main Window. I think it should also work for each Tab in a QMdiSubWindow - but if i set this for such a window it has no effect.

        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