QTransform transform; transform.rotate(45); transform.scale(1,2); qreal dy = transform.dy();
QTransform transform; transform.translate(5,5); qreal dy = transform.dy();In this example, we create a QTransform object and apply a translation of (5,5). Since there is no scaling applied, the value of dy would be 1. The QTransform class is part of the Qt Core module.