inherit from QWidget instead of QGraphicsView