touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #01102
[Bug 1101495] Re: XmlListModel breaks when not in another component
The snippet from http://qt-project.org/doc/qt-5/qml-qtquick-
xmllistmodel-xmllistmodel.html with Qt 5.3 does not seem to fail
anymore.
** Changed in: qtdeclarative-opensource-src (Ubuntu)
Status: New => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to qtdeclarative-opensource-
src in Ubuntu.
https://bugs.launchpad.net/bugs/1101495
Title:
XmlListModel breaks when not in another component
Status in Ubuntu UI Toolkit:
Invalid
Status in “qtdeclarative-opensource-src” package in Ubuntu:
Fix Released
Bug description:
Hi,
Following the reference documentation for XmlListModel:
https://qt-project.org/doc/qt-5.0/qtquick/qml-qtquick-xmllistmodel2-xmllistmodel.html
running qmlscene on the sample snippet fails with:
[...]
QQuickView only supports loading of root objects that derive from QQuickItem.
If your example is using QML 2, (such as qmlscene) and the .qml file you
loaded has 'import QtQuick 1.0' or 'import Qt 4.7', this error will occur.
To load files with 'import QtQuick 1.0' or 'import Qt 4.7', use the
QQuickView class in the qtquick1 module.
If the XmlListModel is wrapped in e.g. a Rectangle, things just work:
Rectangle {
XmlListModel {
...
}
}
This is with an up-to-date raring system, plus:
deb http://ppa.launchpad.net/canonical-qt5-edgers/qt5-beta1/ubuntu quantal main
deb http://ppa.launchpad.net/canonical-qt5-edgers/qt5-proper/ubuntu quantal main
With these packages installed:
qt5-meta-full qt-components-ubuntu qt-components-ubuntu-demos qt-components-ubuntu-examples qt-components-ubuntu-doc notepad-qml
Thanks,
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1101495/+subscriptions