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. Qt and OpenGL Mechanics
Forum Updated to NodeBB v4.3 + New Features

Qt and OpenGL Mechanics

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 477 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.
  • P Offline
    P Offline
    primesoftware
    wrote on last edited by
    #1

    Hello all,
    I am interested in using Qt to develop a hardware accelerated program (not a game). I read somewhere that the Qt integration of OpenGL uses an off screen buffer to render to, and then uses a getPixels call to copy the image to memory for displaying. There is the obvious performance penalty there with that call. Is this true or will Qt go into full hardware acceleration mode if setup properly (including hardware accelerated menus, etc) such that it avoids copying pixels back and forth between CPU memory and GPU?

    Thanks!

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      If you use QML, it is rendered directly using OpenGL. If you use QtWidgets, the painting is done via CPU. It is possible to use QOpenGLWidget to force GL rendering of widgets, too. I don't know if it uses offscreen buffer in that case.

      (Z(:^

      1 Reply Last reply
      2

      • Login

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