Hi all,
I am trying to use QGalleryQueryModel with QML file but i can't get any photo to appear. I am trying to display the images on the phone in my application.
in main.cpp i wrote:
and in the QML file i wroteCode:QGalleryQueryModel * model = new QGalleryQueryModel; model->setRootType(QDocumentGallery::Image); QHash<int, QString> properties; properties.insert(Qt::UserRole + 1, "url"); model->addColumn(properties); viewer.rootContext()->setContextProperty("galleryModel", model);
can any body help to display those images?Code:import Qt 4.7 import QtQuick 1.0 import QtMobility.gallery 1.1 Rectangle { width: 1024 height: 768 GridView { anchors.fill: parent cellWidth: 128 cellHeight: 128 model: galleryModel delegate: Image { source: url width: 128 height: 128 } } }



