[Qt-interest] QDate bug incompatibility win7

RT rwatollenaar at gmail.com
Wed Nov 30 14:41:35 CET 2011


Hi,

I would like to report a bug

if(QDate::fromString("2011-05-04","yyyy-MM-dd")<QDate::currentDate()){

	//Some code

}

will crash the application on a win7 machine today (2011-11-30).

Workaround:

if(QDateTime::fromString("2011-05-04","yyyy-MM-dd")<QDateTime::currentDateTime()){

//some code

}

seems to function.

I am using 4.5.2 so this may already be resolved in later versions of 
qt. Could not see anything reported on internet so assume its not a 
known issue.

Kindly comment if there is something in the above that I am not doing 
correctly.

Kind regards,

Roland.



More information about the Qt-interest-old mailing list