On Wednesday 18 November 2009 08:42:31 Kai Benndorf wrote:
> Hello,
> 
> yesterday i tried to build our application with Qt 4.6.0-rc1 on Windows
> XP, MSVC 2008. All works well, but the compilation of Qwt
> 5.2(http://qwt.sourceforge.net/) which we are using. It was complaining
> about 'qHash' : ambiguous call to overloaded function, details see below.
> 
> After a bit googling i found the following thread in QtCentre:
> http://www.qtcentre.org/forum/f-qwt-23/t-qwt-build-error-with-qt-460-tp1-24
> 037.html which suggests that this is a well known Qt problem which was
>  solved already for previous 4.x release.
> 
> Is this a problem in Qt 4.6.0-rc1 ?
> 
> Best regards


To my knowledge, Qt never had a qHash function for floating point types.
I just verified it by grepping the diff between Qt 4.5 and Qt 4.6


I would like to add that using a floating point type as a key of a QHash might 
be dangerous as there will be == comparison on floating point type, which might 
not work well due to rounding issue

_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback

Reply via email to