I want to invalidate QDateTime or at least member date of QDateTime. When creating a new QDateTime it's invalid by default. But how can I get to this state after having had a vaild date?
I want to invalidate QDateTime or at least member date of QDateTime. When creating a new QDateTime it's invalid by default. But how can I get to this state after having had a vaild date?
Umm, assign a new invalid value to it:
Qt Code:
qDebug() << test.isValid(); // true qDebug() << test.isValid(); // false;To copy to clipboard, switch view to plain text mode
life can be sooo easy
Thanks!
Bookmarks