Results 1 to 8 of 8

Thread: QImage Format Issue

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2006
    Posts
    211
    Thanks
    27
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question QImage Format Issue

    Hi All,

    I m using Qt 4.2.2 on my Intel Mac.

    I m using QImage to load Image from the unsigned char array.
    I m using the following line of code

    image.loadFromData(qBuffer,SizeToRead);

    It is working well in case of jpeg,Png,Bmp...

    But when there is a Gif Image it is unable to create Image from the Array and I think it is because Qt does not support the Gif format Image.

    So I want to ask whether it is possibe to change the format of the Gif image to PNG or some other format so that it show the Image.

    If any body knows then plz Help me.

    Thanks.
    Last edited by vishal.chauhan; 8th March 2007 at 09:00.

Similar Threads

  1. how i can add image in my toolbar
    By jyoti in forum Qt Tools
    Replies: 7
    Last Post: 19th December 2006, 14:39
  2. "sensitising" an image
    By TheKedge in forum Qt Programming
    Replies: 2
    Last Post: 28th June 2006, 07:21
  3. Fast image drawing/scaling in Qt 3.3
    By eriwik in forum Qt Programming
    Replies: 1
    Last Post: 21st June 2006, 10:45
  4. How and when to repaint a widget ?
    By yellowmat in forum Newbie
    Replies: 7
    Last Post: 3rd April 2006, 16:36
  5. Question about updating an image on screen
    By SkripT in forum Qt Programming
    Replies: 1
    Last Post: 24th February 2006, 19:01

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.