[PyKDE] Re: ImportError: cannot import name QCommonStyle

Mateusz Korniak mateusz at ant.gliwice.pl
Thu Apr 17 13:15:01 BST 2003


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.


-- 
Mateusz Korniak
easy.com  easy.go




More information about the PyQt mailing list