diff --git a/src/corelib/kernel/qmetatype.cpp b/src/corelib/kernel/qmetatype.cpp index c380cda0dbd..4828ba0764e 100644 --- a/src/corelib/kernel/qmetatype.cpp +++ b/src/corelib/kernel/qmetatype.cpp @@ -207,7 +207,7 @@ const char *QtMetaTypePrivate::typedefNameForType(const QtPrivate::QMetaTypeInte #ifndef QT_NO_DEBUG QByteArrayList otherNames; for ( ; it != end; ++it) { - if (it.value() == type_d) + if (it.value() == type_d && it.key() != officialName) otherNames << it.key(); } if (!otherNames.isEmpty())