paceholder / nodeeditor

Qt Node Editor. Dataflow programming framework
BSD 3-Clause "New" or "Revised" License
2.94k stars 796 forks source link

How to update QOpenGLWidget realtime? #291

Closed darkwuta closed 2 years ago

darkwuta commented 2 years ago

I created keyboard event function to translate the camera in QOpenGLWidget, but I can't update the QOpenGLWidget frame until I move out my mouse from the node containing the QOpenglWidget.

How can I solve this problem.

Thank you!

paceholder commented 2 years ago

Hi,

I never actually tried to put the OpenGLWidget inside a node. And I do not know how your event propagation works. Maybe there is some member update() function that you could call to update a scene?

darkwuta commented 2 years ago

Thanks for your reply,

I used the the update function and it not works, I guess it maybe related to the update function of nodes but I didn't find it. Can you tell me where I can find this function?

paceholder commented 2 years ago

Sorry, I am afraid I can't be useful with the OpenGLWidget questions here.