在Qt中创建QMessageBox时遇到问题?

问题描述:

在Qt中创建QMessageBox的问题???运行时错误

Problem in creating QMessageBox in Qt??? Run time error

您好,Gokulnath,

这是我的强烈建议,如果您想学习QT,请先阅读本书并仔细阅读所有章节,而在阅读过程中遇到任何困难时,请仅在此处发表您的问题.....

无论如何,这是在QT中创建消息框的方法

< pre>
QMessageBox msgBox;
msgBox.setText(消息将在这里");
msgBox.exec();
</pre>
Hi Gokulnath,

It is my strong recommendation, if you want to learn QT please read book first and go through all chapter it has and while reading if have any difficulty then only post your problem here.....

Anyway, here is way to create Message box in QT

<pre>
QMessageBox msgBox;
msgBox.setText("Message will go here");
msgBox.exec();
</pre>