Qt-jambi-interest Archive, May 2007
Cleanlooks core dumps with beta2
Message 1 in thread
Hi,
QApplication.setStyle(new QCleanlooksStyle()) core dumps on beta2
-=Børge
Message 2 in thread
Børge Austvold wrote:
> QApplication.setStyle(new QCleanlooksStyle()) core dumps on beta2
>
>
>
Hi, Børge.
We know about this issue, and we have fixed it for the final release.
There is a bug in the QStyle.polish() method which will cause a crash
when you combine styles that you "new" yourself with
QApplication.setStyle(). I have a couple work arounds for you, but if
neither of them do the trick, let me know, and I'll send you a source
patch.
Possible workarounds are:
1. Use QApplication.setStyle(QStyleFactory.create("cleanlooks")) if you
simply want to set the clean looks style on your application. Since the
style is created internally in the style factory, you will not hit the bug.
2. If you need to create the style object yourself, then explicitly set
the style on all your widgets (this is more painful to maintain, but
might work as a temporary solution until the bugfixed version is
available). See the following URL for an example of how this can be done:
http://lists.trolltech.com/qt-jambi-interest/2007-04/thread00066-0.html#msg00068
Hope this helps!
-- Eskil