Working of Qtransform



  • i m newbie to QT. stuck in a problem and wanted to know how does QTransform::translate and QTransform::scale works.

    bounding rect has the coordinates as x: 20 y: 35 width: 1200 height: 1200

    child objects are drawn inside the boundaries of bounding rect.

    if bounding rect coordinates changes to x: 110 y: 35 width: 800 height: 800

    when the bounding rect coordinates changes, the child object drawn should map accordingly to new bounding rect coordinates

    after doing research figured out that QTransform::translate and QTransform::scale will help.

    thanks inadvance


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.