[PyKDE] PyQt-snapshot on Qt Embedded
Phil, I tried to install PyQt-snapshot-20020614 on Qt-Embedded-3.0.4 (QtE). Here you have my experiences (LinuxFromScratch-3.3, Python-2.2.1 without special configuration options, gcc-2.95.3): (1) The following environment settings are necessary export QTDIR=/usr/lib/qt3 export QMAKESPEC=qws/linux-x86-g++ (1) Qt-Embedded disables runtime type information, so CXXFLAGS=-fno-rtti ./configure --prefix=/usr builds libsip for Qt Embedded (will be resolved with your build system). (2) build.py is not working for QtE, so I changed build.py to accept a -e option to force sip generating for Qt (the qmake generated makefiles select between X11 and Embedded by -DQWS). See attached patch. (3) had to adapt qnamespace.sip and qprocess.sip, see patch (4) python aclock.py -qws worked, but the other examples did not work because they attempted to set the Frame Buffer device to non-existent modes. Trolltech's corresponding C++ examples are OK. Fiddling around, I discovered that adding print sys.argv to aclock.py caused a segmentation error. This does not occur with PyQt-3.2.4 under X11. Gerard - This message was sent using Endymion MailMan. http://www.endymion.com/products/mailman/ PyQt-QWS.patch.bz2 Description: Binary data
[PyKDE] pyqt sql table3 problem
Hi all, while diving into the wonderful world of sql featured PyQt-3.2.4, I've tried to convert the sql/table3 example from qt 3.0.4 into python. While thinking, that I've done the conversion correctly (I'm pretty new on mind translation c++ to python, so please be patient), it just behaves different to the c++ version. The subject of this example is a custom combobox editor for QDataTable. In the c++ version, the combobox pops it up correctly, when double clicking on a status field, while the python version simply does ignore this. What's wrong with it? For your convenience, I've attached both, the sqltable3.py script, and a testdb.sql to offer an instant starting point. Please edit DB variables on top of sqltable3.py to fit your needs, and populate the database with mysql testdb.sql. The script expects to have the right database plugin compiled for qt. I've configured qt additionally with: -plugin-sql-mysql -I /usr/include/mysql -L /usr/lib/mysql on my SuSE 7.3 setup. To Phil: sqltable3.py is prepared to go into the example section, if it works some day. Any objections? Cheers, Hans-Peter sqltable3.py Description: Binary data testdb.sql Description: Binary data
[PyKDE] Update to sqltable3.py and new sqlcustom1.py with new problem
Hi again, I've fixed one problem in sqltable3.py not returning the right object in CustomSqlEditorFactory. Also attached is a conversion of sql/custom1. This one shows badly, that I haven't yet succeeded in wrapping my mind around signals/slots nor Q_PROPERTIES. Running it doesn't show the any widgets but the save button and segfaults on exit :-(. Any help highly appreciated. TIA, Hans-Peter sqltable3.py Description: Binary data sqlcustom1.py Description: Binary data