Sorry for my English, it's not my native language.
I have a problem - I need to center text in my QGraphicsSimpleTextItem. I inherited my class from QGraphicsSimpleTextItem. Do I need to override the paint()
method or what should I do?
I've read about tightBoundingRect()
in QFontMetrics
. Can I set position of tight bounding rect in QGraphicsSimpleTextItem?
Thanks for your help!