[Qt4-preview-feedback] setUnifiedTitleAndToolBarOnMac so slow
Trenton Schulz
trenton.schulz at nokia.com
Tue Feb 10 13:08:11 CET 2009
On 2009-02-09 14:24:02 +0100, Philippe <philwave at gmail.com> said:
> On the Mac (32 bit) only:
> Some time ago I reported that updating actions that have icons and that
> are displayed in Mac main menu, have an incredible performance hit.
> Today I have found that activating the mode:
> setUnifiedTitleAndToolBarOnMac ( bool set )
>
> is even worse. Updating actions displayed in such tool bar is much much
> too slow (impossible to use in my case, where there are about 40 icons).
Then don't use the unifiedTitleAndToolBarOnMac property. We don't have
much say in this. It's largely handled by Carbon (or Cocoa). The
QToolbar is transparent and it has to composite with the gradient
below. You can try disabling our changes that we do in
QMainWindow::event() for LayoutRequests to see if that makes a
difference. The unified toolbar doesn't give us a way of saying that
our widget has changed its layout.
You can also turn off icons if you don't want them in a menu (using
Qt::AA_DontShowIconsInMenus) or on an action by action basis.
FWIW, I haven't seen an application that uses a unified toolbar and has
more than 16 icons.
It still would be good to see an application that shows what is going
on if only to see if this is a general problem in Qt.
-- Trenton
More information about the Qt4-feedback
mailing list