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



  • how about using the renderText() call ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.