Qt 6.11 is out! See what's new in the release
blog
QDateTime programmatically set invalid
-
-
Hi
Try to assign a default constructed one.
QDateTime test = QDateTime(); -
In python I did
a.setDate(None)(whereawas a QDateTime object) anda.isValid()returned False after it.
ProbablyNULLin C may work either. -
In python I did
a.setDate(None)(whereawas a QDateTime object) anda.isValid()returned False after it.
ProbablyNULLin C may work either.@StarterKit , its not a pointer so NULL or nullptr will not work. Setting to QDateTime() does work.