OpenGL and GPU acceleration
-
wrote on 5 Aug 2012, 14:13 last edited by
How can I ensure that the Qt is really use the GPU acceleration to paint qt/qml widgets on the screen?
-
wrote on 6 Aug 2012, 03:49 last edited by
If you want to use QML then you can take a QGLWidget as Viewport of your QDeclarativeView:
@QDeclarativeView *view = new QDeclarativeView;
QGLWidget *glWidget = new QGLWidget;
view->setViewport(glWidget);@ -
wrote on 6 Aug 2012, 10:31 last edited by
I set the viewport to be openGL widget, bu it didn't infuelce the application performance.
I wonder how can I be sure that the qt realy use the GPU to pait on the screen? -
Uniinstall OpenGL driver from your machine ;) Or remove the card (note, that on Linux + Mesa, it will still work).
-
wrote on 6 Aug 2012, 11:03 last edited by
If you use Qt 4.8 the opengl support is very minimal. So you maybe get not so much changes. you can see it very good in some animations with physical effects.
-
wrote on 6 Aug 2012, 11:04 last edited by
Qt 5.0 has a better opengl support and with the graphics scene its a quite god archtitecure for the future
5/6