At a loss
-
wrote on 15 Apr 2013, 17:29 last edited by
How can I have this only be shown is a specific state?
@ ListView {
width: 800; height: 600
FolderListModel {
id: folderModel
nameFilters: ["*.jpg"]
folder: "film_images"
}
Component {
id: fileDelegate
Column {
Image {
width: 165; height: 244
// fillMode: Image.PreserveAspectFit
smooth: true
source: folderModel.folder + "/" + fileName
}
Text { text: fileName }
}
}
orientation: ListView.Horizontal
spacing: 42
x: 260
y:422
model: folderModel
delegate: fileDelegate
}@ -
wrote on 15 Apr 2013, 23:01 last edited by
It is not clear what you are trying to accomplish here.
-
wrote on 16 Apr 2013, 12:25 last edited by
visible: state=="specific_state"
Do you need this?
-
wrote on 16 Apr 2013, 21:24 last edited by
Thanks.
I have another question.
Instead of the images being loaded from a folder can I have the images come from a .js
3/4