Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
SetScale(qreal) vs scale(qreal, qreal)
xtingray last edited by
Looking around the Internet, I found this link:
Something interesting about it was to find this instruction:
I was looking for the method scale(qreal, qreal) in the QGraphicsItem documentation:
And there's no trace about it. The funny thing is that I tested that method from my
source code using Qt 4.7 and it really works. Is this a ghost method or I'm missing
Anyway, unfortunately for me it is not exactly what I am looking for.
My question is this:
I need the same result of the method setScale(qreal) but with the option of scaling
X and Y axes with different values.
Is there a way to implement something like setScale(qreal, qreal) ?
Thanks for any clue!
andre last edited by
You might want to check out QGraphicsItem::setTransform(). That method allows you to set a QTransform, which allows you to setup basically any 2D transformation you might need.