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

问题描述

限时删除!!

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

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

推荐答案

Qt 5.8引入了 QML类型,是Qt Quick Controls 2产品的一部分.它直接从Qt Platform Abstraction层(如果有)中使用本机实现,并使用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.

这篇关于没有小部件的系统任务栏图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 18:10