在Qt中创建QMessageBox时遇到问题? [英] Problem in creating QMessageBox in Qt?

查看:161
本文介绍了在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>


这篇关于在Qt中创建QMessageBox时遇到问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆