8

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

eyllanesc
  • 235,170
  • 19
  • 170
  • 241
mbg033
  • 501
  • 5
  • 18

1 Answers1

11

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.

BaCaRoZzo
  • 7,502
  • 6
  • 51
  • 82
jpnurmi
  • 5,716
  • 2
  • 21
  • 37
  • Still requires Qt Widgets at least for Windows – mbg033 Feb 02 '17 at 19:55
  • 1
    The Windows port of Qt has gained support for native menus in Qt 5.10, which made it also possible to move QSystemTrayIcon's Windows-backend from Qt Widgets to to the Qt Platform Abstraction layer. Thus, starting with Qt 5.10, Qt Labs Platform SystemTrayIcon and Menu no longer requires Qt Widgets on Windows. Furthermore, Qt Labs MenuBar becomes functional on Windows. – jpnurmi May 19 '17 at 17:36