Hi,
I am trying to use QGalleryQueryRequest to get the photos on the phone but this class works on on the simulator but it did not work for the device and return no errors.
iRequest = new QGalleryQueryRequest(gallery);
connect(iRequest, SIGNAL(resultSetChanged(QGalleryResultSet*)), this, SLOT(resultSetChanged(QGalleryResultSet*)));
iRequest->setRootType(QDocumentGallery::Image);
iRequest->execute();
#if defined (__LOG_FEATURE__)
qDebug()<<"iRequest error ="<< iRequest->error();
#endif
iRequest = new QGalleryQueryRequest(gallery);
connect(iRequest, SIGNAL(resultSetChanged(QGalleryResultSet*)), this, SLOT(resultSetChanged(QGalleryResultSet*)));
iRequest->setRootType(QDocumentGallery::Image);
iRequest->execute();
#if defined (__LOG_FEATURE__)
qDebug()<<"iRequest error ="<< iRequest->error();
#endif
To copy to clipboard, switch view to plain text mode
the returned result is not valid.
where is the problem?
Bookmarks