Results 1 to 6 of 6

Thread: Construct QPixmap or QImage from raw data.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2007
    Posts
    166
    Thanks
    16
    Thanked 14 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Construct QPixmap or QImage from raw data.

    Hi all,

    I am writing a plugin for an application. This application have a callback interface that I inherit and when an image arrive the following method is called:

    Qt Code:
    1. void IListener::onImage(int height, int width, int *data);
    To copy to clipboard, switch view to plain text mode 

    In that method I have to create a valid QPixmap or QImage from those height, weight and integer data pointer. If someone know how to do that, please share with me.

    Regards,
    The Storm
    Last edited by The Storm; 28th November 2008 at 15:18.

Similar Threads

  1. Replies: 2
    Last Post: 29th September 2008, 00:08
  2. Loading a QPixmap from raw data
    By pherthyl in forum Qt Programming
    Replies: 1
    Last Post: 27th January 2008, 10:12
  3. QShared
    By sabeesh in forum Qt Programming
    Replies: 11
    Last Post: 11th October 2007, 12:40
  4. QImage loadFromData not run... XPDF data
    By patrik08 in forum Qt Programming
    Replies: 7
    Last Post: 24th April 2007, 11:51
  5. Creating a QImage from uchar* data
    By forrestfsu in forum Qt Programming
    Replies: 6
    Last Post: 8th February 2007, 15:21

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.