[PyKDE] PyQT3.0pre2
Gerard Vermeulen
gvermeul at labs.polycnrs-gre.fr
Tue Oct 9 13:51:18 BST 2001
Phil,
I ported my PyQwt extensions to PyQt-3.0pre2. Works great.
While playing around, I stumbled on the following things:
(1) pyuic does not translate *.ui files generated by the designer
that comes with Qt-3.0.0beta6.
I suppose it is because pyuic is based on uic-Qt-2.x.x, which
also fails to generate code from version-3 *.ui files.
The format of *.ui files has changed in going from Qt-2.xx to
Qt-3.xx.
There is a second problem: pyuic generated code from version-2
*.ui files failes to run. This is because the Python versions QObject.tr()
expects two strings and only one is given. Up to you (Qt-3.0.0
documentation/code is ambiguous) to decide if it is a problem with pyuic
or the wrapper code for QObject.tr().
(2) I had to fiddle around with %ImportWithTimeline statements
(one of the classes I need to wrap is derived from QTable)
Simply
%ImportWithTimeline qttablemod.sip
worked, because it also imports qtmod.sip. Of course,
the linker has also to be notified.
Is it possible to import more than 1 extra module?
If not, can it be added?
(3) I can help porting your examples to PyQt-3.0.0
What do you want -- separate examples or examples
that use QT_VERSION to adapt themselves to the
different versions of Qt?
Gerard
More information about the PyQt
mailing list