Prefer QOpenGLWidget, except for on Windows (until we sort out Windows issues)
This commit is contained in:
parent
27c05e1132
commit
39aac370e7
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue