Qt 6.11 is out! See what's new in the release
blog
[SOLVED]QGraphicsItem, QMatrix and children
General and Desktop
4
Posts
3
Posters
1.8k
Views
1
Watching
-
Hi!
I have QGraphicsTextItem nested in QGraphicsPolygonItem. Every time text is changed, I rescale parent using QMatrix class with setMatrix method.
But then children ( text item in my case) also get resized and I'm back at square one.
I haven't found anything useful in docs.
The only solution that I've found is to loop through polygon points and move them by scale factor in desired direction.Is there any easier solution for this?
-