[Qgis-developer] Built-in attribute form validation
Jürgen E. Fischer
jef at norbit.de
Tue Dec 20 08:26:39 EST 2011
Hi Nathan,
you know that the initUI function is also called for "standard" forms?
So you could add QValidators to the fields and/or connect to their edit signals
and attach validation functions.
I imagine it should be possible to do have a generic "initUI" function that
does most of what you've described.
Just that it wouldn't allow to enter invalid values in the first place
instead of complaining about invalid values on "OK". Currently it's not
possible to intercept "accept()".
Jürgen
--
Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-20
Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50
Software Engineer D-26506 Norden http://www.norbit.de
--
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502
More information about the Qgis-developer
mailing list