How to establish connection from QtSystemTrayIcon menu items to QML
-
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.