Results 1 to 6 of 6

Thread: QPixmap/QImage load a big picture fail in Symbian. Help!

  1. #1
    Join Date
    Jun 2010
    Posts
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default QPixmap/QImage load a big picture fail in Symbian. Help!

    1),I run the program in Symbian(5800).
    2),I traversed a directory of all the pictures,Most of the pictures can be displayed,so the path is correct.

    question: When a picture's size is big(for example:1920*1200),QPixmap pix("Image path"); is fail. The pictcure can not be displayed.QImage was so.

    I would like to know what is the reason?

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QPixmap/QImage load a big picture fail in Symbian. Help!

    Even large images failed for me. Try using smaller sizes.

    Also in place of QPixmap, try using QImageLoader, you can get a specific size pixmap from that.

  3. #3
    Join Date
    Jun 2010
    Posts
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QPixmap/QImage load a big picture fail in Symbian. Help!

    I use Qt4.7, so,QImageLoader does not exist . then I finded QImageReader, Successfully solved the problem, Thank you for your reminder.

  4. #4
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QPixmap/QImage load a big picture fail in Symbian. Help!

    Ya, sorry it was QImageReader itself , my mistake
    By the way, did you read in smaller size or 1900x1200 size only ?

  5. #5
    Join Date
    Jun 2010
    Posts
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QPixmap/QImage load a big picture fail in Symbian. Help!

    Quote Originally Posted by aamer4yu View Post
    Ya, sorry it was QImageReader itself , my mistake
    By the way, did you read in smaller size or 1900x1200 size only ?
    I can read any size.

  6. #6
    Join Date
    Aug 2010
    Posts
    6
    Qt products
    Qt4 Qt Jambi
    Platforms
    Windows

    Default Re: QPixmap/QImage load a big picture fail in Symbian. Help!

    I was facing a similar problem! Used QImageReader, problem solved!

    Thanks everyone!

Similar Threads

  1. Load dll on Symbian
    By hubbobubbo in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 9th February 2010, 14:08
  2. Replies: 1
    Last Post: 30th October 2009, 03:42
  3. QPixmap/QImage fail to load jpg files in vista
    By schan117 in forum Qt Programming
    Replies: 2
    Last Post: 7th September 2009, 15:48
  4. can't load picture
    By aoo7wangyan in forum Qt Programming
    Replies: 9
    Last Post: 13th July 2009, 14:59
  5. QPixmap/QImage How to enlarge a picture
    By jcr in forum Qt Programming
    Replies: 1
    Last Post: 22nd June 2006, 06:38

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.