Results 1 to 9 of 9

Thread: scanning images

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: scanning images

    JPG files might need a plugin to work. If you installed Qt from binary packages, you probably need to install some other packages as well.

    If one image doesn't work, try another - especially PNG, support for them is embedded into Qt itself so it should always work. The device error is most likely caused by some permissions problem - check if you have read permissions for the file. You can test with a simple program:
    Qt Code:
    1. QFile file("/home/..../...jpg");
    2. if(file.isReadable()) qDebug() << "readable";
    3. qDebug() << file.open(QFile::ReadOnly);
    To copy to clipboard, switch view to plain text mode 

    You should get "readable" and "true".

  2. The following user says thank you to wysota for this useful post:


Similar Threads

  1. displayin' many images on a scence
    By peace_comp in forum Qt Programming
    Replies: 1
    Last Post: 1st May 2008, 08:57
  2. Image Viewer for multiple images
    By sinha.ashish in forum Qt Programming
    Replies: 1
    Last Post: 25th April 2008, 16:30
  3. Release build fails to find some resource images
    By MrGarbage in forum Installation and Deployment
    Replies: 3
    Last Post: 8th December 2007, 16:04
  4. Replies: 1
    Last Post: 5th December 2006, 11:07
  5. JPEG Images not shown in QiconView using QT3??
    By darpan in forum Qt Programming
    Replies: 1
    Last Post: 4th August 2006, 20:34

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
  •  
Qt is a trademark of The Qt Company.