The example I post will work only for horizontal banners, you need to modify it for drawing to diagonal, using QPainterPath (you cannot use QGraphicsRectItem and QGraphicsTextItem)

I was only trying to give an example