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

List:       kde-core-devel
Subject:    Problems when KStyles are used to style Qt-only apps.
From:       Karol Szwed <gallium () physos ! info>
Date:       2001-11-16 4:58:52
[Download RAW message or body]

Hi,

There are some problems that I need to sort out which make qt-only apps  
segfault when using kde styles linked to kdelibs. For example, using KDE3's 
highcolor makes Qt Designer segfault on exit, with the following backtrace... 
this doesn't happen with qt's styles.

#0  0x40008568 in _dl_lookup_symbol (
    undef_name=0x40f69e0c 
"unregisterStaticDeleter__7KGlobalP18KStaticDeleterBase", 
undef_map=0x833de80, ref=0xbffff200, symbol_scope=0x833dfd4, reloc_type=7,
    explicit=0) at do-lookup.h:68
#1  0x4000d3b3 in fixup (l=0x833de80, reloc_offset=0) at dl-runtime.c:97
#2  0x4000d510 in _dl_runtime_resolve () at dl-runtime.c:203
#3  0x40fa84d2 in global destructors keyed to kDebugInfo ()
    at /usr/include/g++-3/stl_map.h:76
#4  0x40f986fb in __do_global_dtors_aux () from /opt/kde3/lib/libkdecore.so.4
#5  0x40a63947 in _dl_close () from /lib/libc.so.6
#6  0x40785479 in dlclose () from /lib/libdl.so.2
#7  0x4000d839 in _dl_catch_error (objname=0x82e5368, errstring=0x82e536c,
    operate=0x40785460 <dlclose+48>, args=0x8406210) at dl-error.c:149
#8  0x4078579b in dlerror () from /lib/libdl.so.2
#9  0x4078544f in dlclose () from /lib/libdl.so.2
#10 0x404f7bc9 in QLibraryPrivate::freeLibrary () from /qt3/lib/libqt-mt.so.3
#11 0x40515d45 in QLibrary::unload () from /qt3/lib/libqt-mt.so.3
#12 0x404fca90 in QComLibrary::unload () from /qt3/lib/libqt-mt.so.3
etc.

It seems like some of the static stuff in kdecore causes problems when used in 
styles loaded by qt-only apps. Not linking to kdelibs is an option, but if 
that were done I'd probably like to move kdeui's kimageeffect, kpixmapeffect, 
and kdecore's kpixmap, kpixmapsplitter and kpixmapprovided into a seperate 
lib that doesn't depend on kdecore/kdeui. That way, the styles could still 
use the effect routines such as gradients, blending  etc. and kdecore/kdeui 
could link to this lib if required.

This would have one consequence though, I would not be able to use KConfig at 
all in the KDE Styles. QSettings is available however, but I have yet to 
determine how suitable that is for the themeable styles that previously did 
use KConfig.

The other option would be to somehow fix the current problems and keep linking 
the styles to kdelibs. Some tips/guidance would be appreciated at this point.

--
Karol Szwed
<gallium@kde.org>

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

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