Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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.

    1. Is there any way to check whether QML is rendered by GPU?
    2. 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);
    @



  • Thanks for replay

    I've already used that code. The problem is that there is no improvement in FPS. And QGLwidget's paint event is not called. I think OpenGL is not used in here.
    So I want to check GL graphic stack is really used.


Log in to reply