A
A
abrigan2016-05-26 16:27:05
Qt
abrigan, 2016-05-26 16:27:05

How to keep scale of resizable text in QGraphicsItem when zooming in QGraphicsScene?

Good afternoon. There is a stage on which elements (QGraphicsItem) with the changeable text are displayed.
In this case, if the scene is scaled, then the text is also scaled. The text in an element can change.
How can I make the text in an element not scale?
I tried to set the flag setFlag(ItemIgnoresTransformations, true);but it does not allow changing the text.
The method QPen::setCosmetic(true);saves the width of the frame and is also not good.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question