Can anyone please explain following code snippet
virtual void setGeometry(const QRectF &rect)
if (rect.size().width() > orig.size().width())
p = orig.scaled(rect.size().toSize());
p = orig;
this code have been taken from following link following
Am not able to understand
1.How,where the function setGeometry is called.
2.How the values of rect are getting changed.
I am struggling with this from a long time....please help me by providing any kind of links related.
Thanks a lot