Il 18/09/20 10:22, Lars Knoll ha scritto:

Sorting and equality are two different things. QVariant has never supported a lessThan operator.

That's not accurate. Q5Variant has operator<, and Q5MetaType allowed to register comparators (op== and op<) for a user type. I don't know how much software relied on this magic for user defined types, certainly reimplementing it in one's code is going to be slightly annoying but doable. The big problem is the logic for builtin types which is now broken without much of a replacement...

--
Giuseppe D'Angelo | [email protected] | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts

Attachment: smime.p7s
Description: Firma crittografica S/MIME

_______________________________________________
Development mailing list
[email protected]
https://lists.qt-project.org/listinfo/development

Reply via email to