Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. OpenGL and GPU acceleration
Forum Updated to NodeBB v4.3 + New Features

OpenGL and GPU acceleration

Scheduled Pinned Locked Moved General and Desktop
6 Posts 4 Posters 4.4k Views 1 Watching
  • 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.
  • G Offline
    G Offline
    goli
    wrote on 5 Aug 2012, 14:13 last edited by
    #1

    How can I ensure that the Qt is really use the GPU acceleration to paint qt/qml widgets on the screen?

    1 Reply Last reply
    0
    • B Offline
      B Offline
      Bomb3rman
      wrote on 6 Aug 2012, 03:49 last edited by
      #2

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

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goli
        wrote on 6 Aug 2012, 10:31 last edited by
        #3

        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?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sierdzio
          Moderators
          wrote on 6 Aug 2012, 10:45 last edited by
          #4

          Uniinstall OpenGL driver from your machine ;) Or remove the card (note, that on Linux + Mesa, it will still work).

          (Z(:^

          1 Reply Last reply
          0
          • T Offline
            T Offline
            torstenlabs
            wrote on 6 Aug 2012, 11:03 last edited by
            #5

            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.


            Using Qt on Linux, Windows and Embedded

            1 Reply Last reply
            0
            • T Offline
              T Offline
              torstenlabs
              wrote on 6 Aug 2012, 11:04 last edited by
              #6

              Qt 5.0 has a better opengl support and with the graphics scene its a quite god archtitecure for the future


              Using Qt on Linux, Windows and Embedded

              1 Reply Last reply
              0

              5/6

              6 Aug 2012, 11:03

              • Login

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