Results 1 to 4 of 4

Thread: QGalleryQueryRequest not working on the device?

  1. #1
    Join Date
    Feb 2008
    Posts
    154
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Windows

    Question QGalleryQueryRequest not working on the device?

    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.
    Qt Code:
    1. iRequest = new QGalleryQueryRequest(gallery);
    2. connect(iRequest, SIGNAL(resultSetChanged(QGalleryResultSet*)), this, SLOT(resultSetChanged(QGalleryResultSet*)));
    3. iRequest->setRootType(QDocumentGallery::Image);
    4. iRequest->execute();
    5. #if defined (__LOG_FEATURE__)
    6. qDebug()<<"iRequest error ="<< iRequest->error();
    7. #endif
    To copy to clipboard, switch view to plain text mode 
    the returned result is not valid.
    where is the problem?

  2. #2
    Join Date
    May 2011
    Posts
    239
    Thanks
    4
    Thanked 35 Times in 35 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Symbian S60

    Default Re: QGalleryQueryRequest not working on the device?

    It might help in identifying the problem if you told what the device is in question. I think support and problems for QtMobility features varies. How is the result not valid? Empty, corrupted, wrong type...?

    Still, you don't show all code. Perhaps you iRequest is a local variable and drops out of stack frame before the asynchronous processing of the result set is complete though whatever stages it requires. (The simulator may have different timing so the same does not happen.)

    That was just a guess.

  3. #3
    Join Date
    Feb 2008
    Posts
    154
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QGalleryQueryRequest not working on the device?

    Thank you for your reply.
    I am using Nokia C7 device and QtSDK 1.1
    iRequest is a member variable.
    the result is not valid means that when i check set.isValid() it always returns false

  4. #4
    Join Date
    Feb 2008
    Posts
    154
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QGalleryQueryRequest not working on the device?

    can any body help?

Similar Threads

  1. Communicating with a USB device in Qt?
    By N3wb in forum Qt Programming
    Replies: 7
    Last Post: 3rd May 2011, 10:30
  2. Working with database on mobile device
    By Tiansen in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 22nd March 2011, 12:19
  3. Qt communicating with USB device
    By jimmydean101 in forum Newbie
    Replies: 6
    Last Post: 2nd March 2010, 17:02
  4. Handheld Device
    By freelyfallers in forum Qt Programming
    Replies: 1
    Last Post: 25th June 2007, 12:48
  5. QDataSream: No Device
    By jonging in forum Qt Programming
    Replies: 5
    Last Post: 20th June 2006, 22:30

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.