'Called when the item\'s parent has changed.
This method handles connecting / disconnecting from ViewBox signals
to make sure viewRangeChanged works properly. It should generally be
extended, not overridden.'

def parentChanged(self):

    self._updateView()
