1.icon放大
QPixmap pixmap(g_dirPath+"start.png"); //创建pix图片
debugBtn->setIcon(QIcon(pixmap.scaled(QSize(20,20)))); //对pix缩放,保证最大比例
debugBtn->setIconSize(QSize(20,20)); //设置size(20,20)以下值.
iconSize : QSize
This property holds the icon size used for this button.
The default size is defined by the GUI style. This is a maximum size for the icons. Smaller icons will not be scaled up.