rewrite QWidget to QGraphicsScene