In the paintEvent of the QGLWidget... first call the base class paint event,, and then draw the icon at the desired position in your subclass's paintEvent.