Take the 2-minute tour ×  I have QGraphicsTextItem objects on a
QGraphicsScene. The user can scale the QGraphicsTextItem objects
by dragging the corners. (I am using a custom "transformation
editor" to do this.) The user can also change the size of the
QGraphicsTextItem by changing the font size from a property
panel. What I would like to do is unify these so that when the
user scales the object by dragging the corner with the mouse,
behind the scenes it actually is calculating "What size font is
necessary to make the resulting object fit the target size and
keep the scale factor at 1.0?"  What I am doing now is letting
the object scale as normal using QGraphicsItem::mouseMoveEvent
and then triggering a FinalizeMapScale method in
QGraphicsItem::mouseReleaseEvent once the mouse scale is
complete. This method should then change the font to the
appropriate size and set the scale back to 1.0.  I have a
solution that appears to be working, but I'm not crazy about it.
I'm relatively new to both Qt and C++, so would