[Qgis-developer] Qwt widgets in Qgis
Tim Sutton
tim at linfiniti.com
Mon May 12 08:35:05 EDT 2008
Hi
I think Qwt is in there by accident rather than by design. QGIS itself
doesnt have any dependency on Qwt and I dont think there are any plans
to add this as a requirement for 1.0.
Regards
Tim
2008/5/11 Barry Rowlingson <b.rowlingson at lancaster.ac.uk>:
>
> I just noticed that Qgis (0.10.0-Io, Windows XP) seems to have the Qwt
> widget stuff included, including Python bindings. Thought this might be
> useful, so I started playing with it in a Python command line. Qwt lets
> me do stuff like this to get a blank X-Y plot - this works fine from a
> DOS command-line Python:
>
> from PyQt4.QtCore import *
> from PyQt4.QtGui import *
> app=QApplication([])
> import PyQt4.Qwt5
> myPlot = PyQt4.Qwt5.QwtPlot()
> myPlot.show()
>
> but if I try that from the QGis Python console (actually, just the
> last three lines, don't do QApplication() from the console), Qgis
> crashes out when I call QwtPlot() to instantiate a plot object.
>
> There's some differences: my command-line python is 2.5.1 and my qgis
> python is 2.5.2. Versions of Qwt5 are the same (5.0.2) and my pythons
> are getting Qwt5 from the right places - Qgis gets it from its python
> folder, and command-line python gets it from C:\\Python25\\blahblabla.
>
> Does this happen to anyone else on this or other platforms? And also,
> is there a guarantee that Qwt will be available in Qgis releases? It
> does look handy for scientific applications - not just the plots, there
> are some useful widgets in there too (floating point sliders ftw!).
>
> Barry
>
> #irc: spacedman
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
--
Tim Sutton
QGIS Project Steering Committee Member - Release Manager
Visit http://qgis.org for a great open source GIS
openModeller Desktop Developer
Visit http://openModeller.sf.net for a great open source ecological
niche modelling tool
Home Page: http://tim.linfiniti.com
Skype: timlinux
Irc: timlinux on #qgis at freenode.net
More information about the Qgis-developer
mailing list