[Qgis-developer] small note about PyQt

Aaron Racicot aaronr at z-pulley.com
Sun Nov 11 00:17:32 EST 2007


Martin,

Just a few notes from personal experience... not sure if they are just
related to the tests I did or indicative of inherent incompatibilities but:

1) I have tested QT4.3.2 with PyQt4.3.1 and SIP 4.7 on both Win and Linux,
all built from source and had issues.  For me I have never been able to get
a QT4.3.2 build to work with PyQt4.3.1.  Again, maybe that is just me, but I
have tried and failed.

2) The Win installer of PyQt from Riverbank (by far the easiest way to
install for most) is built with the Microsoft compilers and is not
compatible with the MingW built versions of QT or QGIS in general.  That is
why Tisham includes the pyqt4 with the win installer now (a MingW version of
pyqt4).  If you have the Riverbank version already installed it will not
work without writing over the PyQt4 stuff in site-packages with the MingW
version.

I have not tried any of this in about a month because it is quite a time
sink to try and deal with all of these installs and testing.  Right now the
only combo that I am happy with and know works on all architectures is
QT4.3.1, PyQt4.3.1 and SIP4.7.  That is what the release was built with and
what I am using currently.

I would love to hear others experience getting QT4.3.2 to work with the
python bindings...

A

+----------------------------------------+
 Aaron Racicot - GIS Programmer   
 360.221.2441 - aaronr at z-pulley.com          
+----------------------------------------+
 z - p u l l e y                        
 pobox 1614
 langley wa 98260
 www.reprojected.com                       
+----------------------------------------+

-----Original Message-----
From: qgis-developer-bounces at lists.qgis.org
[mailto:qgis-developer-bounces at lists.qgis.org] On Behalf Of Martin Dobias
Sent: Saturday, November 10, 2007 3:40 AM
To: QGIS-dev
Subject: [Qgis-developer] small note about PyQt

from IRC logs:

13:12:25  	timlinux:  	 FrankW: dont get qt 4.3.2 yet because last
I
checked qt 4.3.2 doesnt have pyqt support yet
13:12:38 	: 	* FrankW sighs.
13:12:47 	timlinux: 	so if you want to plunk with pygis stuff you
should get 4.3.1
13:13:12 	timlinux: 	lets check if the bindings have been updated
for qt 4.3.2
13:13:24 	PeteE: 	timlinux: I still think you need to be able to
stretch the data befor appling the color ramp, cause Marco build the
color ramp from the data type..
13:13:45 	FrankW: 	Are you serious that pyqt works with 4.3.1
but not
4.3.2? I'd be happy to get a basic qgis up and running and showing
rasters.
13:14:13 	timlinux: 	right then go ahead with 4.3.2 - python
bindings
will catch up
13:14:34 	timlinux: 	python qt bindings are not a trolltech
product
but a third party

This is not true. Bugfix releases of Qt - e.g. 4.3.1 and 4.3.2 are
completely binary compatible between each other, so there's no need to
for updated PyQt for them. Moreover, every 4.x version just adds new
API and keeps binary compatibility. This means that if you should be
able to shuffle versions of Qt and PyQt: if recent PyQt detects that
you have older version of Qt it will just skip newer API when
compiling bindings. Also, when you have older PyQt and newer version
of Qt with some API additions, you can compile them as well...

Martin
_______________________________________________
Qgis-developer mailing list
Qgis-developer at lists.qgis.org
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer




More information about the Qgis-developer mailing list