[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    QApplication::setStyle()
From:       Carsten Pfeiffer <carpdjih () cetus ! zrz ! TU-Berlin ! DE>
Date:       2000-05-20 16:29:49
[Download RAW message or body]

Hiya,

I tried out Magellan and wondered about this in the README:

IMPORTANT: please note that Arkteon will not run unless the KDE style is
set to one of the four Qt styles. Anything else will cause Arkteon to
crash, due to a bug in the KDE libraries (namely KMenuBar::paintEvent).

I investigated and the problem is QApplication::setStyle(). Whenever you
call this, our KDE Style is deleted and KMenuBar in this case fails in
trying to paint something with kapp->kStyle().

As setStyle() is static and there is no signal when the style changes, the
only solution is IMHO connecting to KStyle::destroyed() and set the
pKStyle pointer in kapp to 0L (so that kapp->kStyle() returns 0L and
KMenuBar happily paints as QMenuBar.

Any other ideas? Shall I commit?

Cheers,
Carsten Pfeiffer
-- 
http://www.geocities.com/SiliconValley/1632/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic