class Main(QWidget):

    def __init__(self):
        super(Main, self).__init__()
hbox = QHBoxLayout()
self.setLayout(hbox)
self.view = MyView(self)
self.scene = QGraphicsScene()
self.view.setScene(self.scene)
hbox.addWidget(self.view)


class MyView(QGraphicsView):
    pass
pyQt Hover event with Svg image