Results 1 to 6 of 6

Thread: Creating QImage from char*

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2011
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Creating QImage from char*

    Hi, i'm using a proper by myself written C++ code. I have a Database class that gets png/jpg files from a sqlite database. When i get the pictures i have a char*. Actually to test if it works correctly, i write the images to files, and it works.
    Now i wanted to pass this char* to QT and creating a QImage to load in a GUI. I've tried to Use QPixmal and QByteArray, but i think the problem is during the passing of the char* to the QT classes.
    Can anyone help me to arrange this?
    Please...
    Last edited by emaborsa; 8th May 2011 at 19:42.

Similar Threads

  1. Creating a pixmap from unsigned char*
    By winder in forum Qt Programming
    Replies: 9
    Last Post: 6th July 2021, 13:56
  2. const char* QImage Format?
    By grabalon in forum Newbie
    Replies: 2
    Last Post: 13th May 2010, 00:44
  3. Creating a QImage from uchar* data
    By forrestfsu in forum Qt Programming
    Replies: 6
    Last Post: 8th February 2007, 15:21
  4. QImage and 8 bit unsigner char **
    By fyanardi in forum Newbie
    Replies: 4
    Last Post: 6th June 2006, 14:13
  5. QImage from 8 bit char* RGB buffer
    By tboloo in forum Qt Programming
    Replies: 13
    Last Post: 15th April 2006, 19:56

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.