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());
glimage = QGLWidget::convertToGLFormat(image);
glDrawPixels (image.width(), image.height(), GL_RGB, GL_UNSIGNED_BYTE, glimage.bits());
To copy to clipboard, switch view to plain text mode
Thanks,
Strateng
Bookmarks