Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

rendering text with QGraphicsScene set to OpenGl

$
0
0
Hi, I initially created a QGLWidget which did all my openGl painting. Using that widget I had access to the renderText function which made drawing text trivial. Due to the requirements of what I am doing I have now switched to using a QGraphicsView with the viewport set to a QGLWidget. All my OpenGl drawing now takes place in the drawBackground function of the QGraphicsScene, which means I no longer have access to the renderText function. Can someone suggest a way to easily drawText within the drawBackground function of the QGraphicsScene? Thanks Mike.

Viewing all articles
Browse latest Browse all 22112

Trending Articles