Qt 6.12 LTS is out! See what's new in the release
blog
How to establish connection from QtSystemTrayIcon menu items to QML
QML and Qt Quick
4
Posts
2
Posters
1.5k
Views
1
Watching
-
Hi all,
Desktop GUI application implemented in QML. But system tray implemented with QtSystemTrayIcon. How to launch QML form from tray menu item?
Thanks
-
Hi,
How do you launch the QML file currently ?
-
main.qml launches from main.cpp :
QApplication app(argc, argv); QQmlApplicationEngine engine; engine.load(QUrl(QStringLiteral("qrc:///main.qml")));How to launch qml scene from tray menu item(QSystemTaryIcon's menu item).
-
The only way I could think of is connecting the triggered() signal to a slot where you would then load the QML.