[Interest] Experience with Qt 5 RC 1 on Mac OS X 10.8

Till Oliver Knoll till.oliver.knoll at gmail.com
Mon Dec 10 17:40:42 CET 2012


2012/12/10 Sorvig Morten <Morten.Sorvig at digia.com>:
> ...
> QtMacUnifiedToolBar is available from QtMacExtras, see http://qt.gitorious.org/qtplayground/qtmacextras .
>
> Using it in Assistant: https://codereview.qt-project.org/#change,38144 . As you can see from the comments on that change there are different opinions on wether having a separate Mac-only class is a good idea or not. We'll investigate if we can provide it under a mode/flag for QToolBar.

Thanks for the update, I'll certainly will try it out. For the time
being - especially with regards to priorities for Qt 5 - I haven't
made up my mind either whether "everything under the hood" (QToolBar)
or a dedicated, separate, platform-specific class
("QtMacUnifiedToolBar") would be favorable.

What somehow stung in my eye was the "ForMac" API name part in Qt 4.8
("setUnifiedToolBarForMac), even though I see the reason behind it: I
prefer platform-agnostic names in APIs which are meant to work on all
platforms, even though the docs might state: "This function
(currently) only has an effect on Mac".

So a "flag" (or whatever future mechanism) for QToolBar named
"NativeToolBar" (with the corresponding note in the docs that
currently that has only an effect on Mac, but might be supported by
other platforms in the future) instead of "MacUnifiedToolBar" would be
favorable.


However should it turn out that one had to give up too many advantages
of a "native toolbar" while trying to "squeeze it into the QToolBar"
implementation I would not mind having a separate and
platform-specific class either (such as is the case now).

As long as there is /any/ way to have it "look and behave natively" :)

>> * A bit more troublesome: gestures seem to be completely gone from
>> QGraphicsView!...
>
> Touch events (which Qt gestures are implemented on top of) are disabled since enabling them causes scroll event processing lag.

Yes, I realised that in the Qt 5 Beta 1: two-finger swipes which are
supposed to scroll the QGraphicsView were reacting VERY sluggish:
sometimes you were just scrolling without any reaction, until your
view would start scrolling like a maniac. The same with "rotation" and
"pinch" ("zoom") gestures: sometimes they were completely ignored,
until several seconds later your items would start rotating like crazy
(as if all events had been buffered and now being executed one after
another).

However I remember (and will have to verify, also under Mountain Lion)
that with Qt 4.8 gestures worked quite acceptable in QGraphicsView.

I hope that topic will get more attention soon after Qt 5.0 will be out.



In the meantime I'll try to add additional information to the existing
Issues that Björn seems to have already reported - whatever might
help.

Cheers, Oliver



More information about the Interest mailing list