QML rendering in OpenGL
-
Hello all
I'm developing a QML application on embedded system.
Following this "doc":http://doc.qt.digia.com/4.7/qdeclarativeperformance.html, QML can be rendered using OpenGL by QGLwidget viewport and It means I can use GPU for rendering. But I can’t see difference on my system.- Is there any way to check whether QML is rendered by GPU?
- And if I use GraphicsView whose viewport is QGLWidget, Can GraphicsView can be rendered by OpenGL?
-
Perhaps the answer to your question has already been in this post: "OpenGL view in QML":http://qt-project.org/forums/viewthread/4109
Take a look at this code:
@
QDeclarativeView *view = new QDeclarativeView;
QGLWidget *glWidget = new QGLWidget;
view->setViewport(glWidget);
@