'**Arguments:**
parent          Optional parent widget
useOpenGL       If True, the GraphicsView will use OpenGL to do all of its
rendering. This can improve performance on some systems,
but may also introduce bugs (the combination of
QGraphicsView and QGLWidget is still an \'experimental\'
feature of Qt)
background      Set the background color of the GraphicsView. Accepts any
single argument accepted by
:func:`mkColor <pyqtgraph.mkColor>`. By
default, the background color is determined using the
\'backgroundColor\' configuration option (see
:func:`setConfigOptions <pyqtgraph.setConfigOptions>`).'

def __init__(self, parent=None, useOpenGL=None, background='default'):

    self.closed = False
    QtGui.QGraphicsView.__init__(self, parent)
    from .. import _connectCleanup
    _connectCleanup()
    if (useOpenGL is None):
        useOpenGL = getConfigOption('useOpenGL')
    self.useOpenGL(useOpenGL)
    self.setCacheMode(self.CacheBackground)
    self.setBackgroundRole(QtGui.QPalette.NoRole)
    self.setBackground(background)
    self.setFocusPolicy(QtCore.Qt.StrongFocus)
    self.setFrameShape(QtGui.QFrame.NoFrame)
    self.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
    self.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
    self.setTransformationAnchor(QtGui.QGraphicsView.NoAnchor)
    self.setResizeAnchor(QtGui.QGraphicsView.AnchorViewCenter)
    self.setViewportUpdateMode(QtGui.QGraphicsView.MinimalViewportUpdate)
    self.lockedViewports = []
    self.lastMousePos = None
    self.setMouseTracking(True)
    self.aspectLocked = False
    self.range = QtCore.QRectF(0, 0, 1, 1)
    self.autoPixelRange = True
    self.currentItem = None
    self.clearMouse()
    self.updateMatrix()
    self.sceneObj = GraphicsScene(parent=self)
    self.setScene(self.sceneObj)
    if USE_PYSIDE:
        self.sceneObj._view_ref_workaround = self
    self.centralWidget = None
    self.setCentralItem(QtGui.QGraphicsWidget())
    self.centralLayout = QtGui.QGraphicsGridLayout()
    self.centralWidget.setLayout(self.centralLayout)
    self.mouseEnabled = False
    self.scaleCenter = False
    self.clickAccepted = False
