IconLabel =new QLabel;
QPixmap icon("312.png");
IconLabel->setPixmap(icon);
IconLabel->resize(icon.width(),icon.height());
Qt---Label显示图片,自动设置大小
最新推荐文章于 2024-08-02 17:41:32 发布
IconLabel =new QLabel;
QPixmap icon("312.png");
IconLabel->setPixmap(icon);
IconLabel->resize(icon.width(),icon.height());