Gerard Vermeulen wrote: > > 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().
I'm going to have to port uic from Qt3 from scratch and leave the existing pyuic for Qt2 users only. > (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? It is possible. If you try to import a module many times, all but the first is ignored. However, you should only try and import a timeline once. v3.0pre3 will fix a small bug related to this. > (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? Porting the examples won't take very long, so I'll do that. But feel free to translate more of the C++ examples - particularly those that show off the new Qt3 features. Phil _______________________________________________ PyKDE mailing list [EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
