Open nandohenrique opened 4 years ago
Could you also post your golang code to load the qml?. I'm not sure I have a solution but Im working on the same problem.
Yes sure. My Golang code is like this:
gui.NewQGuiApplication(len(os.Args), os.Args)
var qmlBridge = NewQmlBridge(nil)
var app = qml.NewQQmlApplicationEngine(nil)
app.RootContext().SetContextProperty("QmlBridge", qmlBridge)
app.Load(core.NewQUrl3("qrc:/qml/main.qml", 0))
gui.QGuiApplication_Exec()
It works when I execute it locally, but if I use the docker image it does not work
@nandohenrique, install qml-module-qt-labs-platform
, perhaps?
I'm trying integrating the system tray component in the QML file, but when I run the docker static image for windows or Linux I got the error "module Qt.labs.platform is not installed". However, if I run a command locally for example "qtdeploy -debug build linux ." it's run successfully and the message from system tray appears.
Code example: