问题
I'm wondering if there's a way to implement system tray icon + menu functionality without widgets module?
回答1:
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.
来源:https://stackoverflow.com/questions/41095630/system-tray-icon-without-widgets