QDateEdit to 00/00/0000
Hi Guys... I need to use QDateEdit in my app and I need to set as day something like
in that case the date value will be null for my app, but I cant't set this date to some QDateEdit.
I need the same for the time and the QDateTimeEdit
how can I do that ? regards
This is an invalid date. See QDate's documentation
yes, i know, but i need to do that...
I need to set this invalid date because when my date is 00/00/0000 we set the date to NULL. In my system I need to do that, because I don't have any way to have a real invalid date in the QDateEdit for when I ask if the date is invalid and the result is false, I can take it as a NULL date, an then, set to null this date in the data base.
That's what I need.. any suggestion to do that ?
Does it mean that if your user don't enter any date it should be an invalid date ?
If so why not put e.g. a checkbox beside the QDateTimeEdit so if the checkbox is unchecked -> null date for the database and if checked -> date from the QDateTimeEdit ?
Hi @freddy311082 ,
Other people have had this problem before. See what they tried: