[Qgis-user] Re: [Qgis-developer] SEXTANTE for QGIS has been
released
Martin Dobias
wonder.sk at gmail.com
Mon Apr 2 04:54:16 EDT 2012
On Mon, Apr 2, 2012 at 9:59 AM, Victor Olaya <volayaf at 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
More information about the Qgis-developer
mailing list