On Mon, Apr 2, 2012 at 1:34 PM, Alexander Bruy 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 pr
Hi Victor,
you can use qVersion() macro to get Qt version. Something like
this
minQtVersion = '4.6.0'
def initGui(self):
if qVersion() < minQtVersion:
QMessageBox.warning( self.iface.mainWindow(), "Error", "Your message")
self.loadingCanceled = True
return None
def unload
>
> Hi Victor
>
> in Python you can use 'hasattr' builtin function:
> edit = QLineEdit()
> if hasattr(edit, 'setPlaceholderText'): edit.setPlaceholderText('foo')
>
> Cheers
> Martin
Great! Thanks!
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http
On Mon, Apr 2, 2012 at 9:59 AM, Victor Olaya 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 vers
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 2
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 wrote:
> Hi all
>
> I am glad to announce that a first (tagged as 'experimental')
Great job, congratulations!
-SL
Il giorno gio, 29/03/2012 alle 23.11 +0200, Victor Olaya ha scritto:
> 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