diff --git a/pyqtgraph/widgets/GraphicsView.py b/pyqtgraph/widgets/GraphicsView.py index 77ba05c9..61064a13 100644 --- a/pyqtgraph/widgets/GraphicsView.py +++ b/pyqtgraph/widgets/GraphicsView.py @@ -129,7 +129,12 @@ class GraphicsView(QtGui.QGraphicsView): self.mouseEnabled = False self.scaleCenter = False ## should scaling center around view center (True) or mouse click (False) self.clickAccepted = False - + + # Set a transparent background QPalette! + palette = self.palette() + palette.setColor(QtGui.QPalette.Background, QtCore.Qt.transparent) + self.setPalette(palette) + def setAntialiasing(self, aa): """Enable or disable default antialiasing. Note that this will only affect items that do not specify their own antialiasing options."""