[Qgis-developer] Finding QGIS Version in Python Plugin?

Bruce, Bob (CON) Bob.Bruce at gov.mb.ca
Wed Sep 23 15:46:31 EDT 2009


Hi:

            Is there a function to call to 'discover' the version of
QGIS that you are running? I would like to be able to decide whether to
call:

 

QObject.connect(self.emitPoint, SIGNAL("canvasClicked(QgsPoint &,
Qt::MouseButton)"), self.setClipWindow)

 

or

 

QObject.connect(self.emitPoint, SIGNAL("canvasClicked(const QgsPoint &,
Qt::MouseButton)"), self.setClipWindow)

 

based on the version of QGIS. This would allow me to have one version of
my Image Clipper plugin.

 

Thanks,

            Bob Bruce

 

************************************************************************
**********************************

**    Bob Bruce, P.Eng.                            Geomatics Support
Engineer

**    bbruce at gov.mb.ca                          Manitoba
Geomatics/Remote Sensing Branch,

**    work # (204) 945-6636                    1007 Century Street,

**    FAX  # (204) 945-1365                    Winnipeg, Manitoba,
Canada, R3H 0W4

**

**    The Manitoba Centre for:  

**             Cadastral & Topographical Mapping, and Remote Sensing

**             See us on the Web at:
http://www.gov.mb.ca/conservation/geomatics/

**                 and:
http://www.gov.mb.ca/conservation/geomatics/cada_mapping/index.html

**             Check out our digital maps at:
http://mlidata.gov.mb.ca/WPMLI

**                 and: https://mli2.gov.mb.ca/ 

************************************************************************
**********************************

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20090923/c840ab5a/attachment.html


More information about the Qgis-developer mailing list