windows - Qt Windows 10 通知

标签 windows qt

我正在尝试在我的 Qt 5.13.0 程序中使用 Windows 10 通知系统(从右侧面板弹出的通知系统,可从通知托盘图标获得)。我正在查看 Windows extras 类:https://doc.qt.io/qt-5/qtwinextras-index.html但找不到任何用于此类事情的 API。在 Qt 中甚至有可能吗?

最佳答案

是的,试试 System Tray Icon例子。

它不是仅限 Windows 的 API。 QSystemTrayIcon 类适用于多个平台。在 Windows 10 中, QSystemTrayIcon::showMessage() 显示您正在寻找的通知。

关于windows - Qt Windows 10 通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58096835/

相关文章:

windows - ImageMagick:粗体和斜体字体?

c++ - linux-windows跨c++应用

python - py2exe错误: "Error in atexit._run_exitfuncs:Error in sys.exitfunc:"

c++ - 如何将按键事件发送到 QWebElement?

qt - 添加对象到 QListWidget

c++ - 如何为 Qt 框架配置 CLion IDE?

c - 为什么要对 ShowWindow() 进行初始调用?

c++ - QGraphicsItem 不接收鼠标悬停事件

python - PySide 的 MVVM 模式

windows - 将 Windows 7 UEFI 条目写入 NVRAM