Details
-
Bug
-
Resolution: Won't Do
-
P4: Low
-
None
-
5.12.3
Description
For example:
QApplication app(argc, argv); QVariant d = QVariant::fromValue<QJSValue>(QJSValue()); qDebug() << d.type() << d;
Can output:
QVariant::QWidget* QVariant(QJSValue, )
QVariant::type() does not carry full type information, it only contains QVariant::User. This is passed as is to QMetaType::typeName() which does not seem correct. Instead it could perhaps print User or Unknown.