Hi,
you can store the old values and restore them later
class MyWindow: public MainWindow
{
....
private:
QSize _originalSize;
};
void MyWindow::changeIconSize()
{
_originalSize = iconSize();
setIconSize(...);
}
void MyWindow::restoreSize()
{
setIconSize(_originalSize);
}