[Qgis-developer] problem with custom UI feature form with dates

Hugo Mercier hugo.mercier at oslandia.com
Thu Mar 20 07:11:41 PDT 2014


Le 20/03/2014 14:18, Denis Rouzaud a écrit :
> Hi all,
> 
> I have noticed some problem with custom feature forms when using dates.
> In my form I use a QDateEdit.
> If I leave the field in QGIs as line edit, the date is not set in the
> widget.
> If I set the field as calendar, it messes up the form.
> Here it is in picture: http://imgur.com/a/X7chU
> 
> Is there any way to use QDateEdit???
> 
> Cheers,

Hi Denis,

I've had the same issue here.
After looking at the code, a QCalendar object is needed for a date
field. There is no support for QDateEdit.

-- 
Hugo Mercier
Oslandia


More information about the Qgis-developer mailing list