Rendering QImage on QGLWidget of QML plugin

后端 未结 2 806
情深已故
情深已故 2021-01-06 07:17

I\'m trying to write a QML plugin that reads frames from a video (using a custom widget to do that task, NOT QtMultimedia/Phonon), and each frame is convert

2条回答
  •  一整个雨季
    2021-01-06 07:33

    Solved. The problem was that I was trying to create a new GL context within my plugin when I should be retrieving the GL context from the application that loaded it.

    This code was very helpful to understand how to accomplish that.

    By the way, I discovered that the stuff was being draw inside view. It's just that I needed to execute view->show(), but that created another window which was not what I was looking for. The link I shared above has the answer.

提交回复
热议问题