[Qgis-user] Re: [Qgis-developer] SEXTANTE for QGIS has been released

2012-04-02 Thread Victor Olaya
Thanks Radim

That means that some distributions of QGIS might have a QT version
lower that 4.7? The one I am using works fine, so i gues is  4.7. Is
there any way of checking it on the fly, so I can execute that line
only if the version is recent enough?

Thanks in advance

El día 1 de abril de 2012 22:14, Radim Blazek radim.bla...@gmail.com escribió:
 JFYI,

 AttributeError: 'QLineEdit' object has no attribute 'setPlaceholderText'

 setPlaceholderText was introduced in Qt 4.7.

 QT_MIN_VERSION  in QGIS is 4.4.0.

 Radim

 On Thu, Mar 29, 2012 at 11:11 PM, Victor Olaya vola...@gmail.com wrote:
 Hi all

 I am glad to announce that a first (tagged as 'experimental') version
 SEXTANTE for QGIS has been released. It includes, among other things:

 -Full support for SAGA algorithms
 -ftool(vector processes) and mmqgis algorithms (these are not only
 added to be used directly, but also as real examples of how to create
 new algorithms or migrate existing ones into the SEXTANTE platform)
 -Support for user-defined R scripts
 -Support for user defined Python scripts
 -Graphical modeler
 -Batch processing interface
 -History

 You can download it using the QGIS plugin installer

 Please, read the manual before using the plugin. You can access it
 selecting the SEXTANTE help option in the SEXTANTE menu.

 This version is still missing some functionalities, but should be
 fully usable. Users should be particularly aware of the following
 issues:

 -External applications (SAGA and R) have been tested mostly on
 Windows, but not so much in Linux, so problems might appear on that
 platform. No testing has been done at all under Mac OS.
 -GRASS algorithms have been deactivated, in order to have a working
 version as soon as possible. We hope to have GRASS incorporated into
 the set of available algorithms pretty soon
 -Although most algorithms support multiple formats for their ouput
 layers, these are currently limited to tiff for raster layers,
 shapefiles for vector layers and dbf files for tables. This can be
 changed easily and will be done in a next version
 -Calling external applications might not work if using layers such as
 those coming from remote services or DB connections. Please, use just
 file-based data by now (we are working on improving that as well, but
 it might take time... ;-) )
 -Using tables (and also opening those generated by geoalgorithms) is
 still a bit in development, since there is no built-in default method
 of opening independent tables. By now, attribute tables of vector
 layers can be used, but only if these are in shapefile format (since
 we can refer to the associated dbf file). We expect to change this
 soon, probably creating some plugin to improve that handling of
 independent tables (or if anyone can point us to an existing one that
 can be coupled with SEXTANTE, that good be even better...)

 Once again, read the manual before trying it, as it will greatly help
 you to understand SEXTANTE and what you can do with it.

 For developers: I know a lot of documentation is needed...hope to have
 that solved soon (or at least start to solve it). A SEXTANTE for QGIS
 developers manual is also on its way... there is already a mechanism
 to create QGIS plugins that register new algorithms in SEXTANTE
 (thanks to Alexander Bruy for the suggestion!), but still has to be
 documented. I am currently working on an well documented example case,
 to be released soon as well

 Of course, all bug reports and comments are welcome, since this is
 still a beta version.

 Thanks in advance for your interest.
 ___
 Qgis-developer mailing list
 qgis-develo...@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Re: [Qgis-developer] SEXTANTE for QGIS has been released

2012-04-02 Thread Martin Dobias
On Mon, Apr 2, 2012 at 9:59 AM, Victor Olaya vola...@gmail.com wrote:
 Thanks Radim

 That means that some distributions of QGIS might have a QT version
 lower that 4.7? The one I am using works fine, so i gues is  4.7. Is
 there any way of checking it on the fly, so I can execute that line
 only if the version is recent enough?

Hi Victor

in Python you can use 'hasattr' builtin function:
edit = QLineEdit()
if hasattr(edit, 'setPlaceholderText'): edit.setPlaceholderText('foo')

Cheers
Martin
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Re: [Qgis-developer] SEXTANTE for QGIS has been released

2012-04-02 Thread Martin Dobias
On Mon, Apr 2, 2012 at 1:34 PM, Alexander Bruy alexander.b...@gmail.com wrote:

 minQtVersion = '4.6.0'

 def initGui(self):
    if qVersion()  minQtVersion:
      QMessageBox.warning( self.iface.mainWindow(), Error, Your message)
      self.loadingCanceled = True
      return None

Hi Alex

there may be a problem with above code. Imagine that PyQt4 is built
with e.g. Qt 4.2 - that means that it will provide only methods
available in Qt 4.2 and below. If the user updates Qt version to 4.8,
the new methods and classes will not be available in PyQt4, however
qVersion() will return '4.8.0'. There is also PYQT_VERSION_STR
variable in PyQt4.QtCore that returns the version of Qt used to build
PyQt.

Martin
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user