You can add a QGLWidget as viewport of your graphic view. Example:
myGraphicsView
->setViewport
(new QGLWidget());
myGraphicsView->setViewport(new QGLWidget());
To copy to clipboard, switch view to plain text mode
This enable the GL acceleration while drawing your scene.
You can also specify what kind of options must be enabled, and you can do this through QGLFormat parameter, as said dkoryagin:
myGraphicsView
->setViewport
(new QGLWidget(QGLFormat(QGL
::SampleBuffers | QGL
::DirectRendering)));
myGraphicsView->setViewport(new QGLWidget(QGLFormat(QGL::SampleBuffers | QGL::DirectRendering)));
To copy to clipboard, switch view to plain text mode
You'll find all the available Format options (that at the moment I don't remember) here. Warning, is the manual :P :
http://doc.qt.nokia.com/stable/qgl.h...matOption-enum
Ciao,
Marco
Bookmarks