Hi,
Since it says nothing about rounding the corners of a QGraphicsRectItem in the Qt-Documentation, I would like to know if it's possible, and if yes how?
Thanks in advance,
forty-two
Hi,
Since it says nothing about rounding the corners of a QGraphicsRectItem in the Qt-Documentation, I would like to know if it's possible, and if yes how?
Thanks in advance,
forty-two
You have to subclass QGraphicsRectItem and call QPainter::drawRoundRect() in your paint() implementation. Implementing shape() would also be advised if you wish to do collision detection.
forty-two (4th July 2012)
Bookmarks