[Qt4-preview-feedback] setUnifiedTitleAndToolBarOnMac so slow
Philippe
philwave at gmail.com
Tue Feb 10 13:51:10 CET 2009
> 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.
Just use Assistant. Try resizing the window with the grip. It's damned
slow here on a last generation MacPro. The only reason I can imagin is
the presence of "setUnifiedTitleAndToolBarOnMac".
Philippe
On Tue, 10 Feb 2009 13:08:11 +0100
Trenton Schulz <trenton.schulz at nokia.com> wrote:
> 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
>
> _______________________________________________
> Qt4-preview-feedback mailing list
> Qt4-preview-feedback at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback
More information about the Qt4-feedback
mailing list