QMessageBox
来源:互联网 发布:营销软件honghailongt 编辑:程序博客网 时间:2024/06/06 08:40
inline static int question(QWidget *parent, const QString &title, const QString& text, StandardButton button0, StandardButton button1)
enum Icon { NoIcon = 0, Information = 1, Warning = 2, Critical = 3, Question = 4};
enum StandardButton {// keep this in sync with QDialogButtonBox::StandardButton NoButton = 0x00000000, Ok = 0x00000400, Save = 0x00000800, SaveAll = 0x00001000, Open = 0x00002000, Yes = 0x00004000, YesToAll = 0x00008000, No = 0x00010000, NoToAll = 0x00020000, Abort = 0x00040000, Retry = 0x00080000, Ignore = 0x00100000, Close = 0x00200000, Cancel = 0x00400000, Discard = 0x00800000, Help = 0x01000000, Apply = 0x02000000, Reset = 0x04000000, RestoreDefaults = 0x08000000, FirstButton = Ok, // internal LastButton = RestoreDefaults, // internal YesAll = YesToAll, // obsolete NoAll = NoToAll, // obsolete Default = 0x00000100, // obsolete Escape = 0x00000200, // obsolete FlagMask = 0x00000300, // obsolete ButtonMask = ~FlagMask // obsolete};
QMessageBox::information(this, tr("information"), tr("这是information"), QMessageBox::Ok | QMessageBox::No);
QMessageBox::warning(this, tr("warning"), tr("这是warning"));
QMessageBox::critical(this, tr("critical"), tr("这是critical"));
QMessageBox::question(this, tr("question"), tr("这是question"));
1 0
- QMessageBox
- QMessageBox
- QMessageBox
- QMessageBox
- QMessageBox
- QMessageBox
- QMessageBox
- QMessageBox
- QMessageBox
- QMessageBox
- QMessageBox
- QMessageBox
- QMessageBox
- QMessageBox
- QMessageBox
- QMessageBox解析
- QMessageBox-17
- 自定义QMessageBox
- MairaDB 函数(一)
- Android中的junit测试
- Java中类的加载过程
- 术语表 Glossary
- linux udev详解
- QMessageBox
- Mac端Hadoop2.7.2的安装
- ovs-ofctl一些操作
- poj 1953 数列中只有0和1 且1不能和1相邻,求有几种可能
- 【JZOJ5100】【GDOI2017 day2】RPG
- MySQL数据库引擎介绍、区别、创建和性能测试的深入分析
- php最基础的东西,面试必备<2>
- 委托--事件--基础以及在现在做的项目上的实际应用(一)
- MyBatis_7