I Think the proble is creating a QPainter inside paintGL().

You don't use the painter in RunOpenGL. Why create it??