Try using boundingRect() -
Qt Code:
  1. qDebug() << rect1->boundingRect().topLeft()
To copy to clipboard, switch view to plain text mode