hello,
i try to open all the pictures of my mobile device in a view but not the ones there are in a specific foulder ( e:/kurier/ ...)
i get a message that there is a property used value not functioning...Code:import QtQuick 1.0 import Qt 4.7 import QtMobility.gallery 1.1 Rectangle { id: mainRect property int sel: -1 GridView { id: gridnow anchors.fill: parent cellWidth: 120 cellHeight: 100 highlight: Rectangle {color: "lightsteelblue"} highlightFollowsCurrentItem: false focus: true model: DocumentGalleryModel { id: galmod rootType: DocumentGallery.Image properties: [ "url" , "title", "lastModified", "dateTaken"] sortProperties: ["lastModified (ASC)","dateTaken (ASC)" ] filter: GalleryContainsFilter { property: "url" value: "kurier" negated: true; } } delegate: Rectangle { id: container color: "white" width: 120 height: 100 property int a: 0; function changePic() { galSignal.signalModus(); console.log("count " + galmod.count); console.log("index" + index); if(mainRect.sel != -1) { console.log("col " + galmod.get(mainRect.sel).url); // galmod.get(mainRect.sel).color = "black"; galmod.setProperty(mainRect.sel,"color","black"); // container(mainRect.sel).color = "black"; } if(container.a == 0) { container.color = "#cc0033"; container.a = 1; galSignal.signalChoosePic(galmod.get(index).url); mainRect.sel = index; } else { container.color = "white"; mainRect.sel = -1; container.a = 0; } } Connections { target: galSignal; onSignalModus: container.color = "white"; } Item { Image { id: originalImage source: url fillMode: Image.PreserveAspectFit onStatusChanged: if (originalImage.status == Image.Ready) { console.log('Loaded ' + url); //originalImage.source = "qrc:/res/grafik/noprev.png"; } else { if(originalImage.status == Image.Error) { originalImage.source = "qrc:/res/grafik/noprev.png"; orginalText.text = galSignal.fileName(url); } } width: 110 x: 5 y: 5 height: 90 } Text { x: 10 y: 15 id: orginalText text: "" color: "white"; elide: Text.ElideLeft; font.pixelSize: 13; width: 110 height: 90 } } MouseArea { anchors.fill: parent onClicked: changePic(); } } } }
using no filter it is working
THx Paul



