QMessageBox message(QMessageBox::NoIcon,QString::fromLocal8Bit("关于本程序"),QString::fromLocal8Bit("你好"),
QMessageBox::Ok);
message.setWindowIcon(QIcon("images/1.jpg"));
message.setIconPixmap(QPixmap("images/2.jpg"));
message.exec();
QMessageBox::Ok);
message.setWindowIcon(QIcon("images/1.jpg"));
message.setIconPixmap(QPixmap("images/2.jpg"));
message.exec();