November 11, 2010

wisty wisty
Lab Rat
4 posts

How to render date and time in Qt using Opengl ES 2.0

 

Hi,
We want to draw date and Time on Opengl ES 2.0 context in QT 4.7.
We have tried doing so using drawText(x,y,Qstring).
following is the code attached for reference.
QPainter painter;
painter.begin( this );
painter.setPen(Qt::red);
painter.drawText(-6,6,QString(“Example”));
But it is not being drawn on the Opengl ES context.

We are inheriting this widget class from QGLWidget.
Is this the correct way or there is some other way to draw date and Time on the opengl ES 2.0 context?
Please suggest or provide some link for reference.

Regards,
wisty

1 reply

December 4, 2010

Deleted Member # 4a2 Deleted Member # 4a2
Ant Farmer
1274 posts

how about using the renderText() call ?

 
  ‹‹ GDB Debugging helper      Problem with nokia E66 and 6710 ››

You must log in to post a reply. Not a member yet? Register here!