3 Star 14 Fork 5

木子 / PyQt_practice

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
00-QErrorMessage-错误消息对话框.md 1.38 KB
一键复制 编辑 原始数据 按行查看 历史
木子 提交于 2021-06-11 17:05 . Update md document of QErrorMessage

QErrorMessage

继承自 QDialog

一个显示错误消息的对话框

The static qtHandler() function installs a message handler using qInstallMessageHandler() and creates a QErrorMessage that displays qDebug(), qWarning() and qFatal() messages. This is most useful in environments where no console is available to display warnings and error messages.

静态 qtHandler() 函数使用 qInstallMessageHandler() 安装消息处理程序并创建显示 qDebug()、qWarning() 和 qFatal() 消息的 QErrorMessage。 这在没有控制台可用于显示警告和错误消息的环境中最有用。

Qt 官方文档

Qt 5.15 官方文档-QErrorMessage

Public Slots 槽函数

槽函数 说明 备注
showMessage(str &message) 显示消息 通常立即显示,但如果有挂起的消息则将排队以待稍后显示;如果用户要求不再显示该消息,则此函数不执行任何操作
showMessage(str &message, str &type) 显示消息 重载;如果用户要求不再显示该类型type的消息,则此函数不执行任何操作
Python
1
https://gitee.com/muzing/PyQt_practice.git
git@gitee.com:muzing/PyQt_practice.git
muzing
PyQt_practice
PyQt_practice
master

搜索帮助