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. UnifiedTitleAndToolBar on Yosemite?
Qt 6.11 is out! See what's new in the release blog

UnifiedTitleAndToolBar on Yosemite?

Scheduled Pinned Locked Moved General and Desktop
10 Posts 2 Posters 2.4k 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.
  • P Offline
    P Offline
    patrickkidd
    wrote on last edited by
    #1

    Two things I've noticed when using unifiedTitleAndToolBar on Yosemite:

    • You can't move the window by dragging the toolbar, only when dragging the menu bar
    • It doesn't support translucency on Yosemite.

    I have seen this, but not sure if it's a deadend or if there are other places to watch for this sort of thing.

    https://bugreports.qt-project.org/browse/QTBUG-39463

    Thoughts? Sorry, it has to be a pain keeping up with the times...

    https://alaskafamilysystems.com/

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

      Hi,

      It's the right place. The feature request seems to be what you are asking for so you can vote for it to help get it implemented.

      As for your bug, a report with a minimal compilable example showing how to reproduce it would be good if there is none already.

      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
      • P Offline
        P Offline
        patrickkidd
        wrote on last edited by
        #3

        When putting together the example, I found that setting WA_TransparentForMouseEvents on the spacer Widget did the trick. The widget was capturing the drag events.

        Thanks!

        https://alaskafamilysystems.com/

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

          You should still open a report with your findings, that will help improve Qt on OS X

          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
          • P Offline
            P Offline
            patrickkidd
            wrote on last edited by
            #5

            Should I? I doesn't seem like a bug but rather my own choice to implement the spacing in that way.

            https://alaskafamilysystems.com/

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

              Did you do something unusual ?

              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
              • P Offline
                P Offline
                patrickkidd
                wrote on last edited by
                #7

                I inserted empty QWidget objects between menu icons to add stretch, so that some icons were justified left while some were justified right. This is the easiest way I could find to add a spacer to a [unified?] toolbar.

                The problem was that these widgets were catching the mouse events and preventing them from reaching the perfectly functional Qt unified toolbar code.

                To fix it I just set Qt.WA_TransparentForMouseEvents on these spacer widgets. So I feel like the qt code is working just fine, and it was my creative spacing that broke it.

                https://alaskafamilysystems.com/

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

                  I see. So indeed, you're doing something unusual. By the way, are you sure you are following Apple's UI guide lines ?

                  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
                  • P Offline
                    P Offline
                    patrickkidd
                    wrote on last edited by
                    #9

                    No, I'm not sure :) Although I think I got this idea from looking at some Mac apps.

                    I am recently considering bailing on the mac app store to just sell it on my own website. The 30% just seems like it's not worth it for a smaller app...

                    https://alaskafamilysystems.com/

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

                      Beware, not all of them are following the guide lines ;)

                      I can't really comment on that, both have their pros and cons

                      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