aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqml.cpp
diff options
context:
space:
mode:
authorAmanda Hamblin-Trué <amanda.hamblin-true@qt.io>2023-06-29 17:05:30 +0200
committerAmanda Hamblin-Trué <amanda.hamblin-true@qt.io>2023-06-30 14:36:14 +0200
commit6ea6bbeb32f9ae946c80d7d7f9c4cb696238c70b (patch)
tree64310c6d86a834f86214383d31f8bbf0f2936009 /src/qml/qml/qqml.cpp
parentb9bfdea0e2c6721d2306af0ecc44f88da9988957 (diff)
Clarify error message for QML type registration
Fixes: QTBUG-114966 Change-Id: I3451cf38841cbefe0fa8d7c07ce91da372f8d184 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/qml/qqml.cpp')
-rw-r--r--src/qml/qml/qqml.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qml/qml/qqml.cpp b/src/qml/qml/qqml.cpp
index ce73e2461b..f951fb6a14 100644
--- a/src/qml/qml/qqml.cpp
+++ b/src/qml/qml/qqml.cpp
@@ -151,9 +151,10 @@ void QQmlPrivate::qmlRegistrationWarning(
{
switch (warning) {
case UnconstructibleType:
- qWarning()
+ qWarning().nospace()
<< metaType.name()
- << "is neither a QObject, nor default- and copy-constructible, nor uncreatable."
+ << " is neither a default constructible QObject, nor a default- "
+ << "and copy-constructible Q_GADGET, nor marked as uncreatable.\n"
<< "You should not use it as a QML type.";
break;
case UnconstructibleSingleton: