参考博客:以下内容摘抄以下链接大神博客:
https://blog.csdn.net/zjx1230/article/details/83715421
QMessageBox::warning(this,"Search String","Please enter a search string",QObject::tr("确定"));