:internal: implement custom QGraphicsItem for displaying formulas on top of a QGraphicsView