the QGraphicsTextItem should be focused in order to view the cursor