Hi,
I would like to display a QLabel (basically just a text) on top of an QGlWidget.
In paintGL() I render my OpenGL stuff, I would like to have a number displayed over the OpenGL context.
I tried overriding paintEvent but I think the Gl context is always on top.
Any idea?

Thanks in advance

Qt Code:
  1. void Player::paintEvent(QPaintEvent *event)
  2. {
  3.  
  4. QPainter painter(this);
  5. painter.setRenderHint(QPainter::Antialiasing);
  6. painter.drawText(250, 250, "1");
  7. QGLWidget::paintEvent(event);
  8. }
To copy to clipboard, switch view to plain text mode