[PyKDE] Re: ImportError: cannot import name QCommonStyle

Phil Thompson phil at river-bank.demon.co.uk
Thu Apr 17 13:38:00 BST 2003


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




More information about the PyQt mailing list