create a custom QGraphicsItem with both QGraphicsRect and QGraphicsText
and in QGraphicsView class (parent)
QTransform transform;
transform.rotate( 90);
grpahicsItem->setTransform(transform);