Problem with renderText function in QGLWidget class
I have sub classed QGLWidget in my application and have to annotate my 3D drawing with dimensions. For this i am trying to use renderText() in my application, but the problem i am facing here is that i am unable to render more than one text.
@QString text1 = "Tom n Jerry";
QString text2 = "Harry Potter";
When i run it, it just displays "Tom n Jerry", i.e., only the first text. Any solutions?
QGLWidget::renderText is buggy and considered obsolete. Use overpainting as its documentation suggests.
Another way is using a QPainter to draw to a texture which is displayed with quads. This is the approach I use in MIFit. You can see the code here:
Thanks Guys, i think i will better use bitmap procedure. renderText is too hard to handle and its rotation is another headache.
Anyways do you guys have any idea about implementing Drag and Drop feature in openGL application.
Thanks & Regards