You ca set the viewport of your QGraphicsView to use OpenGL with these instructions :
Qt Code:
To copy to clipboard, switch view to plain text mode
The QGLWiget can also be derived and therefore respond to the GL events, initializeGL, paintGL, ... but I dont know much about it.
Then to optimize you texture drawing with a QGraphicsItem, you can derive one and overload the paint event in wich you can draw directly from QImage into QPainter.
But I don't think this will be better once the image is loaded into the QGraphicsPixmapItem.
S.Cascio
Bookmarks