没有小部件的系统托盘图标 [英] System tray icon without widgets
本文介绍了没有小部件的系统托盘图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道是否有一种方法可以在没有小部件模块的情况下实现系统托盘图标 + 菜单功能?
I'm wondering if there's a way to implement system tray icon + menu functionality without widgets module?
推荐答案
Qt 5.8 引入了一个 SystemTrayIcon
实验性 Qt Labs Platform 模块中的 QML 类型,作为 Qt Quick Controls 2 产品的一部分.它直接使用来自 Qt 平台抽象层的本地实现(如果可用),并使用 Qt Widgets 作为其他平台上的后备.
Qt 5.8 introduces a SystemTrayIcon
QML type in the experimental Qt Labs Platform module, as part of the Qt Quick Controls 2 offering. It uses a native implementation directly from the Qt Platform Abstraction layer where available, and Qt Widgets as a fallback on other platforms.
这篇关于没有小部件的系统托盘图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文