[PyQt] QDateTimeEdit issue

Kerri Reno kreno at yumaed.org
Thu Mar 8 22:32:03 GMT 2007


QDateEdit doesn't allow null dates.  It's on trolltech's to-do list, but 
last I looked they hadn't scheduled it to be done.

I wrote my on dateEdit widget, that I actually like better than theirs, 
in python.  If you want the source, just let me know.


Yuma Educational Computer Consortium
Compass Development Team
Kerri Reno
kreno at yumaed.org      (928) 502-4240

Kevin Cureton wrote:
> I have a QDateEdit and I want to display no date in the widget. I've 
> tried setting the date to a null QDate (created using the default 
> constructor). It falls back on display 01/01/2000 for me instead. If I 
> try setting the format to a null string, QDateTimeEdit provides a 
> default. I tried calling the underlying clear() method, but to no avail.
> Does anyone have an idea about how I can force a QDateTimeEdit to 
> display blank if there is no date for it?
> Using Qt 4.2.2 and PyQt 4.1.1.
> --kev
> --
> kevin at bang-splat dot com
> The tools for managing paradox are still undeveloped. --Kevin Kelly
> ------------------------------------------------------------------------
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

More information about the PyQt mailing list