1

I see a lot of posts regarding a customizable date field for a QGIS custom feature form such as this one and this one. I cannot bind my fields with a line edit, combo box, nor dateEdit. Is there any known solution to this issue?

This is what happens when I try to with a QDateEdit widget in PyQt Designer and set the widget in QGIS to Calendar. Changing the dateEdit doesn't update the value. The calendar widget successfully opens and sets the date, but it is not at all placed in the correct place on the form.

enter image description here

1 Answer 1

2

One workaround is assigning the QLineEdit control to a text field with the following settings:

enter image description here

1
  • Good for now--it's too bad, though, that the calendar widget doesn't work for feature forms for now. please do drop a line if you ever find another solution using the calendar widget.
    – user25976
    Oct 7, 2014 at 23:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.