Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.12.4
-
None
Description
With Qt 12.4 ( missing in 12.3 ) a bad check has been added to QMetaObject::newInstance:
if ( !inherits(&QObject::staticMetaObject ))
{ ... return nullptr; }As calling QMetaObject::newInstance is totally fine for Q_GADGET classes, this check is not only wrong, but also introduces an incompatible regression between 12.3 and 12.4.
Several of my project are unusable with all versions >= Qt 12.4 and I would prefer not having to change all my Q_GADGETs into Q_OBJECTs to get things running again.
Please also remove this bad check from Qt 13.x.