widget->setGeometry(geometry())

it will set new geometry of widget.