OpenGL and GPU acceleration
-
How can I ensure that the Qt is really use the GPU acceleration to paint qt/qml widgets on the screen?
-
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);@ -
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).
-
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.
-
Qt 5.0 has a better opengl support and with the graphics scene its a quite god archtitecure for the future