[Development] Should QVariant be doing fuzzy comparisons on doubles?

André Pönitz apoenitz at t-online.de
Mon Sep 19 19:50:22 CEST 2016


On Mon, Sep 19, 2016 at 06:48:10PM +0200, Marc Mutz wrote:
> Fuzzy comparision should be performed with a named function, qFuzzyCompare, 
> and _only_ with that function.

+1.
 
> We need to fix other classes for Qt 6, too (e.g. Q(Size|Point|Line)F.

+1.

> That said, a qFuzzyCompare(QVariant, QVariant) would probably be useful, but 
> requires extensive extra work, like hashing a QVariant, too.

+/-0.

I'd personally prefer to request people to be explicit about
what they think they will get.

Andre'



More information about the Development mailing list