QT中label显示图片

来源:互联网 发布:mac网络实用工具 编辑:程序博客网 时间:2024/05/19 05:04
    QPixmap picture;// .h 文件中
// .c文件 picture.load("images/dengdai.png"); ui->fengren_picture->setPixmap(picture);            ui->fengrenlabel->setText("等待输入");

images文件夹放到编译之后的debug文件或是release文件中

1 0