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
QtWS25 Last Chance

OpenGL and GPU acceleration

Scheduled Pinned Locked Moved General and Desktop
6 Posts 4 Posters 4.3k 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.
  • G Offline
    G Offline
    goli
    wrote on 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 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 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
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on 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 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 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

              • Login

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