strateng
23rd March 2010, 04:35
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.
glimage = QGLWidget::convertToGLFormat(image);
glDrawPixels (image.width(), image.height(), GL_RGB, GL_UNSIGNED_BYTE, glimage.bits());
Thanks,
Strateng
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.
glimage = QGLWidget::convertToGLFormat(image);
glDrawPixels (image.width(), image.height(), GL_RGB, GL_UNSIGNED_BYTE, glimage.bits());
Thanks,
Strateng