Hello I'm new to this one and I'm having a bit of a problem. I am using the Sailfish Application template of the Sailfish Creator, which creates a cover page and two QML pages + a main.qml.
I have extended the second page, trying to get some Listview going. Well - actually I have copied most from your sailfishsilica-silicalistview web page (https://sailfishos.org/sailfish-silica/qml-sailfishsilica-silicalistview.html#details) Resulting in the following : ----------------------------------------------------------------------------------- import QtQuick 1.1 import Sailfish.Silica 1.0 Page { id: page PullDownMenu { MenuItem { text: "Show Page 1" onClicked: pageStack.push(Qt.resolvedUrl("FirstPage.qml")) } MenuItem { text: "Show Page 3" onClicked: pageStack.push(Qt.resolvedUrl("ThirdPage.qml")) } } contentHeight: childrenRect.height SilicaListView { width: 480; height: 800 model: ListModel { ListItem { fruit: "jackfruit" } ListItem { fruit: "orange" } ListItem { fruit: "lemon" } ListItem { fruit: "lychee" } ListItem { fruit: "apricots" } } delegate: Item { width: ListView.view.width height: theme.standardItemHeight Label { text: fruit } } } } ----------------------------------------------------------------------------------- So far so good - but when building it - I get the following : Error: Error while loading page: file:///opt/sdk/share/myfirstapp/pages/SecondPage.qml:20 ListModel is not a type My first reaction is WTF ??? It seems like I'm unable to spot the error Anybody able to spot the problem ? Thanks in advance :o) --- Mange hilsner/Regards ... Peter Jespersen Linux User #221493 “My software never has bugs. It just develops random features ...” _______________________________________________ SailfishOS.org Devel mailing list