×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    19

    QML Image: Error decoding

    Hello,

    We have written an application that uses QT+QML and it basically goes into an images folder stored on a N8 phone and is supposed to display jpg images.

    Now the folder where these images are stored is separate from the project folder. So when we build our project the images directory is not included. We have specified an absolute path to the images directory that we are reading from.

    By using debug statements, we can see that our program goes into the images folder and is able to reach the JPG files, but our QML app cannot display the images.

    The error we keep getting is:
    [Qt Message] file:///E:/......./ListDelegate.qml:54:17: QML Image: Error decoding: E:\Images\xxxxxxxxx.jpg: Unable to read image data

  2. #2
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: QML Image: Error decoding

    Could be a forward-slash/backslash thing -- Qt prefers forward slashes but will accept either. But, eg, Sqlite requires backslashes. Probably there are other add-ons that require forward slashes.

Similar Threads

  1. Image Base64 decoding
    By 1xuname1x in forum Symbian
    Replies: 17
    Last Post: 2012-04-07, 09:47
  2. Problems decoding Base64 image
    By jccorral in forum Qt
    Replies: 9
    Last Post: 2010-07-27, 21:33
  3. decoding an image
    By sandy_zeng in forum Symbian
    Replies: 1
    Last Post: 2007-11-25, 11:42
  4. Image Decoding Issue
    By mailkamlesh in forum Symbian Media (Closed)
    Replies: 3
    Last Post: 2007-05-21, 04:40

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×