When the layout of a static text will be recalculated?
The title fully expressed my doubt, however, I particularly interested in the following case:
In the implementation of the function
paint(QPainter* painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
in a subclass of QGraphicsItem, by modifying the pen of painter (with painter->setPen()), it will cause the layout of a QStaticText (a QStaticText member of the subclass) will be recalculated?
Thanks in advance for any response.