I added:
Qt Code:
  1. qglwidget = new QGLWidget;
  2. qglwidget->context()->format().setDoubleBuffer(true);
  3. setViewport(qglwidget);
To copy to clipboard, switch view to plain text mode 
to the initalization code given above, but without any positive outcome.
(I hope I did it correctly)