要确保按钮的大小正确,您必须根据像素图大小重新设置图标。 这样的事情应该有效: QPixmap pixmap("image_path"); QIcon ButtonIcon(pixmap); button->setIcon(ButtonIcon); ...
確定! 回上一頁