Hello,
Can anyone please explain following code snippet
virtual void setGeometry(const QRectF &rect)
{
QGraphicsWidget::setGeometry(rect);
if (rect.size().width() > orig.size().width())
p = orig.scaled(rect.size().toSize());
else
p = orig;
}
this code have been taken from following link following
http://qt.nokia.com/doc/4.6/animatio...-main-cpp.html
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
Regards
Chirpylife

Reply With Quote



