> Olivier Goffart wrote:
>
> > Ok. But still, qSort does not seems to use qHash.
>
> Indeed, but QList has a toSet method and QSet needs hashing ...
>
Hi Olivier,
Just try this :
struct foo
{
int m_IntValue;
doble m_Double;
};
QList<struct foo> StructList;
And try to compile it with VC++. It complains about qHash(foo) does not
fit with any of the overloaded uint qHash ( ... )
As Uwe said, toSet that needs a QSet and also a qHash method. Even if
you don't call those methods, the compiler tries to generate the code so
you're in trouble.
Jordi.
_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback