(1) Scaling pixmaps: see QPixmap::scaled()
(2) When you setIcon() the icon is displayed on the button. The subsequent setIconSize() will change nothing.

Therefore:
Qt Code:
  1. QPixmap imgPixmap(fileNamePics);
  2. QIcon imgIcon(imgPixmap.scaled(100,80));
  3.  
  4. ui.PushButtonUp->setIcon(imgIcon);
To copy to clipboard, switch view to plain text mode