From pykde Thu Apr 17 11:37:21 2003 From: Phil Thompson Date: Thu, 17 Apr 2003 11:37:21 +0000 To: pykde Subject: Re: [PyKDE] Re: ImportError: cannot import name QCommonStyle X-MARC-Message: https://marc.info/?l=pykde&m=105057949117614 On Thursday 17 April 2003 12:13 pm, Mateusz Korniak wrote: > On Thursday 17 of April 2003 11:09, you wrote: > > I have such problem (with qt 3.1.2 PyQt 3.5, sip 3.5, kde 3.1.1a PyKDE > > 3.5), I'm investigating it, but any hints are apreciated. TIA > > > > >>> import khtml > > > > Traceback (most recent call last): > > (...) > > ImportError: cannot import name QCommonStyle > > I'm not sure if write anything sensible below but al least now I'm able to > import khtml :) > > Only thing I had to change was in > qcommonstyle.sip:52 > comment out %If (Qt_STYLE_WINDOWS || Qt_STYLE_MOTIF) / %End pair > > First of all I'm unable to google for any sensible documentation relating > Qt Styles compiled as plugins, content /usr/X11R6/include/qt/qconfig.h in > such case also I am total sip ignorant, and thus I'm unable to give any > sensible explanation why it works nor if it should be solved like that. That's the correct solution - and has already been implemented in the snaphot. Phil _______________________________________________ PyKDE mailing list PyKDE@mats.gmd.de http://mats.gmd.de/mailman/listinfo/pykde