Results 1 to 1 of 1

Thread: QImage displaying through OpenGL

  1. #1
    Join Date
    Mar 2010
    Posts
    28
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QImage displaying through OpenGL

    Hey,

    I was wondering if anyone could help me: I'm using QImage to create my image, then I'd like to use some of the functions provided by OpenGL. I think i've converted it, corrected with the following code but I am uncertain on how to display it on a widget like "QGraphicsView" if it is possible.

    Qt Code:
    1. glimage = QGLWidget::convertToGLFormat(image);
    2. glDrawPixels (image.width(), image.height(), GL_RGB, GL_UNSIGNED_BYTE, glimage.bits());
    To copy to clipboard, switch view to plain text mode 

    Thanks,
    Strateng
    Last edited by strateng; 23rd March 2010 at 04:43.

Similar Threads

  1. Replies: 0
    Last Post: 6th December 2009, 00:41
  2. Qt with OpenGL ES for ARM9 - All OpenGL ES tests have failed!
    By vinpa in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 3rd December 2009, 10:10
  3. Problem from OpenGL to QT OpenGL
    By nuts_fever_007 in forum Newbie
    Replies: 5
    Last Post: 15th May 2009, 09:37
  4. Replies: 7
    Last Post: 27th June 2007, 09:34
  5. Replies: 3
    Last Post: 15th March 2006, 11:44

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.