Commit ef9d730d authored by Luke Campagnola's avatar Luke Campagnola
Browse files

Workaround for Qt bugs on OSX:

  - use graphics system 'raster' by default
  - disable OpenGL in QGraphicsView
parent 4ceae9f1
......@@ -30,7 +30,10 @@ from . import numpy_fix
if 'linux' in sys.platform: ## linux has numerous bugs in opengl implementation
useOpenGL = False
elif 'darwin' in sys.platform: ## openGL can have a major impact on mac, but also has serious bugs
useOpenGL = True
useOpenGL = False
if QtGui.QApplication.instance() is not None:
print('Warning: QApplication was created before pyqtgraph was imported; there may be problems (to avoid bugs, call QApplication.setGraphicsSystem("raster") before the QApplication is created).')
QtGui.QApplication.setGraphicsSystem('raster') ## work around a variety of bugs in the native graphics system
useOpenGL = False ## on windows there's a more even performance / bugginess tradeoff.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment