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. QPainter QPaintDevice and QOpenGLFrameBufferObject Possible Incompatibility
Forum Update on Monday, May 27th 2025

QPainter QPaintDevice and QOpenGLFrameBufferObject Possible Incompatibility

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 354 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
    GKMR
    wrote on last edited by
    #1

    Hello,

    I am fairly new to QT development and so maybe not good at understanding documentation very well. I am using a QT5.7 and can see that QPainter needs a QPaintDevice for Initialization in one of the constructors which do not have QOpenGLFrameBufferObject specified in the list of "Inherited by" section of QPaintDevice. Same is reflected in the compilation and I get an error if I do so. Everything is as expected until here.

    But in the documentation of QOpenGLFrameBufferObject I can see a QPainter can be used to draw on this. Is there any other way to make it working with QPainter.

    A bit of task context:
    I am using a video and drawing some shaped over it to reflect my research data and for this I implemented QAbstractVideoSurface. The loading of the current frame converted to QPixMap or QImage becomes very slow and so I am trying options with hardware acceleration of OpenGL.

    First is it a correct thing to try.
    Second if I am missing something in using QOpenGL extention of QT.

    Any other hint to make things faster in realtime processing is appreciated.

    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