Prefer QOpenGLWidget, except for on Windows (until we sort out Windows issues)

This commit is contained in:
Marius Kintel 2016-01-07 19:50:13 -05:00
parent 27c05e1132
commit 39aac370e7

View file

@ -118,8 +118,13 @@ mingw* {
CONFIG += qt CONFIG += qt
QT += opengl concurrent QT += opengl concurrent
qopenglwidget { # Prefer QOpenGLWidget for non-Windows platforms
# To explicitly enable QOpenGLWidget: qmake CONFIG += qopenglwidget
# To explicitly enable QGLWidget: qmake CONFIG += qglwidget
!win*: CONFIG += qopenglwidget
qopenglwidget:!qglwidget {
!lessThan(QT_VERSION, 5.4) { !lessThan(QT_VERSION, 5.4) {
message("Using QOpenGLWidget")
DEFINES += USE_QOPENGLWIDGET DEFINES += USE_QOPENGLWIDGET
} }
} }