Skip to content

Commit

Permalink
Try use more recent QOpenGLWidget with Qt5.
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhuramachandran committed Jul 16, 2017
1 parent 212286e commit 36d4bd7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tvtk/pyface/ui/qt4/QVTKRenderWindowInteractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@

if PyQtImpl == "PyQt5":
if QVTKRWIBase == "QGLWidget":
from PyQt5.QtOpenGL import QGLWidget
try:
from PyQt5.QtWidgets import QOpenGLWidget as QGLWidget
except:
from PyQt5.QtOpenGL import QGLWidget
from PyQt5.QtWidgets import QWidget, QSizePolicy, QApplication
from PyQt5.QtGui import QWheelEvent
from PyQt5.QtCore import Qt, QTimer, QObject, QSize, QEvent
Expand Down

0 comments on commit 36d4bd7

Please sign in to comment.