Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML rendering in OpenGL
QtWS25 Last Chance

QML rendering in OpenGL

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 1.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bgKoh
    wrote on last edited by
    #1

    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?
    1 Reply Last reply
    0
    • podsvirovP Offline
      podsvirovP Offline
      podsvirov
      wrote on last edited by
      #2

      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);
      @

      1 Reply Last reply
      0
      • B Offline
        B Offline
        bgKoh
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved