QPainter text with OpengGLWidget problem
General and Desktop
2
Posts
1
Posters
935
Views
1
Watching
-
I'm trying to draw text with QPainter on top of an OpenGL scene. The first time the program comes up I can see everything ok, but if I move the mouse the opengl scene becomes fuzzy.
You can see what I mean here:
https://bitbucket.org/spacemig/earth3dthe code is available if anyone wants to try. I'm running this on Windows 7 with MinGW and MSVC (I get the same problem with both).
Inside Sphere::paintEvent(QPaintEvent * event) I call paintGL() and then I create the painter object, this is how I've seen it done in other places but with this 3D scene I can't get it to work properly.
Any thoughts?