[Qt-interest] QDateTime bug with <= operator ?
Merwin
merwin.irc at gmail.com
Wed Feb 10 10:39:54 CET 2010
Alexandre Beraud a écrit :
> Hi,
>
> QDateTime has milisecond precision (just like QTime). Can you check that
> those are equal too ?
>
> Regards,
>
> Alex
>
>
Ok, that was the problem, thank you ;-)
Resolved.
> Merwin a écrit :
>
>> Hi,
>>
>> I got a really strange thing that happens:
>>
>> qDebug() << beginOfTheYear << beginDate << (beginOfTheYear <= beginDate);
>>
>> Outputs:
>>
>> QDateTime("*mer. févr. 10 09:42:01 2010*") QDateTime("*mer. févr. 10
>> 09:42:01 2010*") *false*
>>
>> As you can see, datetimes are equals, but the comparaison returns false...
>> Is there a reason or it's a bug?
>>
>> --
>> Merwin
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>
>>
>>
>>
>
>
>
More information about the Qt-interest-old
mailing list