[SOLVED]Date/Time Edit can not set value 1390 for year
-
Hi, i want to set 1390 for year in Date/Time edit. how can i do that? i want to remove enforce from that. is it possible?
-
Hi,
Do you mean that 1389 and 1391 works for you? -
Hi, no 1389 and 1391 Not work. i want to work that. i use qt 5.0.1
-
By default, this property minimumDate contains a date that refers to September 14, 1752,
So, some code like this should work.
@
QDateTimeEdit w;
w.setMinimumDate(QDate(100,1,1));
w.setDate(QDate(1390,1,1));
@ -
thanks. it worked.