验证中...
Languages: C/C++
Categories: 桌面应用界面
Latest update 2019-03-07 13:16
note.cpp
Raw Copy
显示图片1:
QImage *img = new QImage("./Img/103.png"); //Image类图片
ui->label_2->setPixmap(QPixmap::fromImage(*img)); //Image转换为Pixmap
显示图片2:
QPixmap pix = QPixmap("./Img/204.png");
ui->label_2->setPixmap(pix);

Comment list( 0 )

You need to Sign in for post a comment

Help Search