没有小部件的系统任务栏图标 [英] System tray icon without widgets

查看:75
本文介绍了没有小部件的系统任务栏图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有一种方法可以在没有窗口小部件模块的情况下实现系统任务栏图标+菜单功能?

I'm wondering if there's a way to implement system tray icon + menu functionality without widgets module?

推荐答案

Qt 5.8引入了

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆