[Development] Should QVariant be doing fuzzy comparisons on doubles?
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.
> We need to fix other classes for Qt 6, too (e.g. Q(Size|Point|Line)F.
> That said, a qFuzzyCompare(QVariant, QVariant) would probably be useful, but
> requires extensive extra work, like hashing a QVariant, too.
I'd personally prefer to request people to be explicit about
what they think they will get.
More information about the Development