Details
-
Technical task
-
Resolution: Out of scope
-
P2: Important
-
None
Description
QVariant requires the use of the run-time registry based meta-type system. We should offer API in QMetaObject that allows avoiding this and instead uses for example std::any or a new custom Qt type. For example:
// old QVariant data = object->property("name"); object->setProperty("name", "test") // new std::any data = object->property("name"); object->setProperty("name", "test");
We also need the ability to convert between a QVariant and the new variant type. The new type should not do any implicit conversions.