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. Mac: How to display a context menu for a toolbar, when it's made "unifiedTitleAndToolBarOnMac"?
QtWS25 Last Chance

Mac: How to display a context menu for a toolbar, when it's made "unifiedTitleAndToolBarOnMac"?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 4.4k 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.
  • S Offline
    S Offline
    serkol
    wrote on 27 Nov 2010, 04:55 last edited by
    #1

    I use "unifiedTitleAndToolBarOnMac" to make the Mac version of my app look "native". I also want to display a context menu (right-click menu) for the toolbar, like you can do for the toolbar in Finder. I tried all possible ways that I found in the doc - they don't work. Can anyone help, please?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      serkol
      wrote on 4 Dec 2010, 14:15 last edited by
      #2

      Thanks tamhanna, but this will not work. My situation is specific for the tool bar, when the main window has setting unifiedTitleAndToolBarOnMac.

      I tried all means that I know to catch an event from the mouse click - I do not get any events. When unifiedTitleAndToolBarOnMac is ON, the toolbar becomes a part of the window header - you can drag the whole window by dragging the unused part of the toolbar. And it looks like Qt cancels all events.

      Native Mac OS X apps do not cancel all events in this case. You can always right-click on such unified toolbar in a native Mac OS X app. Try Finder for example.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on 5 Dec 2010, 00:39 last edited by
        #3

        There is bug report "QTBUG-11271":http://bugreports.qt.nokia.com/browse/QTBUG-11271 open for this issue. You can go to the bug tracker and vote for the ticket, this may speed up the fix a bit.

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply
        0
        • X Offline
          X Offline
          xsacha
          wrote on 5 Dec 2010, 01:47 last edited by
          #4

          [quote author="tamhanna" date="1291459510"]Hi,
          I use this to fake a context menu in my Qt for Symbian app:@
          [/quote]
          Is this for older Symbians? I thought Symbian^3 supports context menu at touch location. At least that was one of the big changes in the UI. I don't know if Qt has caught up with that yet.

          • Sacha
          1 Reply Last reply
          0
          • I Offline
            I Offline
            infoctopus
            wrote on 6 Dec 2010, 22:15 last edited by
            #5

            event filter can be a good workaround for any event-related issues

            Qt rulez

            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