Home > Back-end >  How to achieve the function of updateGL QOpenGLWidget?
How to achieve the function of updateGL QOpenGLWidget?

Time:10-27

In the Qt based on Opengl write a drawing program, involving the mouse interactions,
Used in Qt5.4.0 QGLWdiget, can use the updateGL function redraw after the mouse interactions;
But after Qt5.4.1 QGLWidget changed QOpenGLWidget, and there is no updateGL function, the code will fail before
Want to ask you, in the QOpenGLWidget, how to realize the function of updateGL function?

CodePudding user response:

It is good to use the update ()

CodePudding user response:

All 2025 is not knot,

CodePudding user response:

I use QOpenGLWidget display text, why didn't call the update, but after window resize the font will change, their internal implementation is not the same?

CodePudding user response:

I use QOpenGLWidget display text, why didn't call the update, but after window resize the font will change, their internal implementation is not the same?
  • Related