Hi Janneke, I'm on master here with designer with all qgs widgets, and I do not have it either.
When I create a form though, with a field which has a datetime field, I CAN set the 'Field Format' to 'Date'-only... So maybe there is some extra sip/development work needed to make this widget also available in QtDesigner? (try to ask this question on the defv list?) Or (not tested), maybe you can create an ui iwth QgsDateTime, and manually edit the ui file? HTH, Regards, Regards, Richard Duivenvoorde On 7/19/22 20:28, Janneke van Dijk via Qgis-user wrote:
Dear all, I need a date widget that can be set to a null date. From https://qgis.org/pyqgis/master/gui/QgsDateEdit.html#module-QgsDateEdit <https://qgis.org/pyqgis/master/gui/QgsDateEdit.html#module-QgsDateEdit> I understand that this should be possible (from 3.14 upwards). In Qt Designer (osgeo4W/bin/qgis-designer.bat which I understand is shipped with QGIS 3.26) I only see the QgsDateTimeEdit widget. image.png How can I use the QgsDateEdit widget?
_______________________________________________ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user