Browse Source

remove warning message so that we can finally switch on opengl for gridview without the terminal getting spammed

master
Nils 5 years ago
parent
commit
5ec3015fc6
  1. 7
      qtgui/mainwindow.py

7
qtgui/mainwindow.py

@ -141,7 +141,12 @@ class MainWindow(TemplateMainWindow):
self.patternGrid = PatternGrid(parentView=self.ui.gridView)
self.ui.gridView.setScene(self.patternGrid)
self.ui.gridView.setRenderHints(QtGui.QPainter.TextAntialiasing)
#self.ui.gridView.setViewport(QtWidgets.QOpenGLWidget())
self.ui.gridView.setViewport(QtWidgets.QOpenGLWidget()) #TODO: QT BUG! Review in the far future.
#ProxyWidget-Items in an openGl accel. GraphicsView create a ton of messages: Unsupported composition mode
#But everything works. Install a message handler to just get rid of the warning.
def passHandler(msg_type, msg_log_context, msg_string):
pass
QtCore.qInstallMessageHandler(passHandler)
self.patternToolbar = QtWidgets.QToolBar()
self.ui.patternArea.layout().insertWidget(0, self.patternToolbar)

Loading…
Cancel
Save