From kde-core-devel Fri Nov 16 04:58:52 2001 From: Karol Szwed Date: Fri, 16 Nov 2001 04:58:52 +0000 To: kde-core-devel Subject: Problems when KStyles are used to style Qt-only apps. X-MARC-Message: https://marc.info/?l=kde-core-devel&m=100588651123721 Hi, There are some problems that I need to sort out which make qt-only apps =20 segfault when using kde styles linked to kdelibs. For example, using KDE3= 's=20 highcolor makes Qt Designer segfault on exit, with the following backtrac= e...=20 this doesn't happen with qt's styles. #0 0x40008568 in _dl_lookup_symbol ( undef_name=3D0x40f69e0c=20 "unregisterStaticDeleter__7KGlobalP18KStaticDeleterBase",=20 undef_map=3D0x833de80, ref=3D0xbffff200, symbol_scope=3D0x833dfd4, reloc_= type=3D7, explicit=3D0) at do-lookup.h:68 #1 0x4000d3b3 in fixup (l=3D0x833de80, reloc_offset=3D0) 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=3D0x82e5368, errstring=3D0x82e= 536c, operate=3D0x40785460 , args=3D0x8406210) at dl-error.c:14= 9 #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 us= ed in=20 styles loaded by qt-only apps. Not linking to kdelibs is an option, but i= f=20 that were done I'd probably like to move kdeui's kimageeffect, kpixmapeff= ect,=20 and kdecore's kpixmap, kpixmapsplitter and kpixmapprovided into a seperat= e=20 lib that doesn't depend on kdecore/kdeui. That way, the styles could stil= l=20 use the effect routines such as gradients, blending etc. and kdecore/kde= ui=20 could link to this lib if required. This would have one consequence though, I would not be able to use KConfi= g at=20 all in the KDE Styles. QSettings is available however, but I have yet to=20 determine how suitable that is for the themeable styles that previously d= id=20 use KConfig. The other option would be to somehow fix the current problems and keep li= nking=20 the styles to kdelibs. Some tips/guidance would be appreciated at this po= int. -- Karol Szwed