int iRet = msgBox(pos, tr("警告") , tr("确定要删除当前选中的行吗?") , tr("确定"), tr("取消"), 1, 1); if (1 == iRet) return; // 0:确定 1:取消
Qt msgBox 快捷版
原文:http://www.cnblogs.com/lt47/p/5885242.html