title: Qt5 convert QImage to OpenGL format
body: <p>In Qt4 there was a nice little function <code>QGLWidget::convertToGLFormat(QImage &amp;img)</code>. If I am using Qt5 with OpenGL <code>QWindow</code> what should I use to convert the image?</p>