Important: Please read the Qt Code of Conduct -

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 );
    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.


  • how about using the renderText() call ?

Log in to reply