+ Reply to Thread
Results 1 to 1 of 1

Thread: QPainter QPaintDevice and QOpenGLFrameBufferObject Possible Incompatibility

  1. #1
    Join Date
    Feb 2018
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Question QPainter QPaintDevice and QOpenGLFrameBufferObject Possible Incompatibility

    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 correct thing to try QOpenGL for this problem.
    Second if I am missing something in using QOpenGL extension of QT to make it work with QPainter.

    Any other hint to make things faster in realtime processing is appreciated.
    Last edited by gaurav.kumar; 13th February 2018 at 21:18.

+ Reply to Thread

Similar Threads

  1. Replies: 1
    Last Post: 14th February 2016, 23:37
  2. QOBJECT macro / EXTERN C incompatibility issue
    By talha in forum Qt Programming
    Replies: 3
    Last Post: 10th January 2014, 17:22
  3. Replies: 4
    Last Post: 27th December 2011, 12:34
  4. Must construct QApplication before QPaintDevice
    By sekatsim in forum Qt Programming
    Replies: 16
    Last Post: 8th June 2008, 01:00
  5. Size of a QPaintDevice
    By georgie in forum Qt Programming
    Replies: 1
    Last Post: 13th May 2006, 09:40

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts