aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickwidgets
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@viroteck.net>2015-02-08 15:21:55 +0100
committerRobin Burchell <robin.burchell@viroteck.net>2015-02-23 12:43:11 +0000
commit9fcae3df40335b97a50836ffb07a5ffbc4f40673 (patch)
tree83c5d04d771e7d61bf4dc56b2d899f95341ed01f /src/quickwidgets
parentc77d187b81dad91ba1d8fec35956a9822abe059e (diff)
QQuickView/QQuickWidget: Improve diagnostics message for non-QQuickItem root fallback case.
We don't want to recommend qmlscene, and QtQuick1 is being deprecated, so there's no need to spell it out anymore either. Change-Id: Ia4b87d1a4b3afdae9ea9c13a89ac5cb78c85f06d Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Diffstat (limited to 'src/quickwidgets')
-rw-r--r--src/quickwidgets/qquickwidget.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/quickwidgets/qquickwidget.cpp b/src/quickwidgets/qquickwidget.cpp
index 4dae6e6aef..298d7e2c37 100644
--- a/src/quickwidgets/qquickwidget.cpp
+++ b/src/quickwidgets/qquickwidget.cpp
@@ -833,11 +833,8 @@ void QQuickWidgetPrivate::setRootObject(QObject *obj)
} else {
qWarning() << "QQuickWidget only supports loading of root objects that derive from QQuickItem." << endl
<< endl
- << "If your example is using QML 2, (such as qmlscene) and the .qml file you" << endl
- << "loaded has 'import QtQuick 1.0' or 'import Qt 4.7', this error will occur." << endl
- << endl
- << "To load files with 'import QtQuick 1.0' or 'import Qt 4.7', use the" << endl
- << "QDeclarativeView class in the Qt Quick 1 module." << endl;
+ << "Ensure your QML code is written for QtQuick 2, and uses a root that is or" << endl
+ << "inherits from QtQuick's Item (not a Timer, QtObject, etc)." << endl;
delete obj;
root = 0;
}