[PyKDE] ImportError: cannot import name QCommonStyle
Mateusz Korniak
mateusz at ant.gliwice.pl
Thu Apr 17 11:10:01 BST 2003
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):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.2/site-packages/khtml.py", line 24, in ?
from kparts import KParts
File "/usr/lib/python2.2/site-packages/kparts.py", line 25, in ?
from kio import KRun
File "/usr/lib/python2.2/site-packages/kio.py", line 24, in ?
from kdeui import KAction
File "/usr/lib/python2.2/site-packages/kdeui.py", line 52, in ?
from kdefx import KPixmap
File "/usr/lib/python2.2/site-packages/kdefx.py", line 25, in ?
from qt import QCommonStyle
ImportError: cannot import name QCommonStyle
>>> import qt
>>> for s in dir(qt):
... if s.find("Style") >= 0:
... print s
...
QStyle
QStyleFactory
QStyleHintReturn
QStyleOption
QStyleSheet
QStyleSheetItem
I have distro qt build with modules:
ls /usr/X11R6/lib/qt/plugins-mt/styles/
libqcdestyle.so libqcompactstyle.so libqmotifplusstyle.so libqmotifstyle.so
libqplatinumstyle.so libqsgistyle.so libqwindowsstyle.so
$ cat /usr/X11R6/include/qt/qconfig.h
/* Everything */
/* License information */
#define QT_PRODUCT_LICENSEE "Free"
#define QT_PRODUCT_LICENSE "qt-free"
/* Build key */
#define QT_BUILD_KEY "i686 Linux g++-2.95.* full-config"
/* Compile time features */
#define QT_LARGEFILE_SUPPORT 64
#define QT_NO_STYLE_CDE
#define QT_NO_STYLE_MOTIF
#define QT_NO_STYLE_SGI
#define QT_NO_STYLE_WINDOWS
--
Mateusz Korniak
easy.com easy.go
More information about the PyQt
mailing list