문제

In Qt4 there was a nice little function QGLWidget::convertToGLFormat(QImage &img). If I am using Qt5 with OpenGL QWindow what should I use to convert the image?

도움이 되었습니까?

해결책

QGlWidget is still available for use (QGLWidget is the only QGl* class not deprecated in Qt5 looks like)

beyond that there is a new QOpenGlTexture class that has functions taking QImages directly.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top