Qt4 gui performance
Simon Hausmann
hausmann at kde.org
Sun Jul 1 16:52:53 BST 2007
On Saturday 30 June 2007 18:48:38 Andreas Hartmetz wrote:
> On Friday 29 June 2007 17:56:29 Tobias Koenig wrote:
> > Hi,
> >
> > I just wanted to ask whether somebody else have the same feeling that
> > Qt4 applications are recognizable slower in painting windows and widgets
> > than Qt3 applications.
>
> You can enable optimization in debug builds by editing the file
> qt-copy/mkspecs/common/g++.conf:
> change
> QMAKE_CFLAGS_DEBUG += -g
> to
> QMAKE_CFLAGS_DEBUG += -g -O2
>
> You'll probably lose line-by-line debugability due to optimization, but
> that should be OK if you are not interested in major Qt bugfixing.
Instead of modifying mkspecs/common/g++.conf you can also just configure Qt
as-is. If you _don't_ pass -debug or -release to Qt's configure then the
toolkit is built with -O2 and -g by default.
Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070701/4920b48d/attachment.sig>
More information about the kde-core-devel
mailing list