Hi! > > > Relational comparisons with QVariant are deprecated in 5.15 and will be > > > removed because they are a misfeaure. > > > Redesign your code so your question does not need to be asked. > > > > Could you please explain why comparing two QVariants is a misfeature? > > Not comparing for equality. Comparing for ordering. > > What comes first, QSize(1, 1) or QRegularExpression("^$") ?
Well, if QVariant::canConvert() says right operand can be converted to type of left, then convert and compare the result. If it can't convert, behavior should be undefined and qFatal() should be called (or whatever Qt 5.15 prefers to do in detectable cases of undefined behavior). -- Best Regards, Bernhard Lindner _______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest