版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_30901441/article/details/74330639
1.QMessageBox::information(this,"Title",QString::number(result));
2.QMessageBox::warning(this,"Title","Error Message");
3.QMessageBox box;
box.setText("Another ways to use MessageBox");
box.exec();