[Interest] How to fix qml unqualified access warning for setContextProperty
Nuno Santos
nuno.santos at imaginando.pt
Thu Oct 24 12:05:25 CEST 2024
Hi,
In my applications I usually register a main controller for the whole application right at startup:
QQmlApplicationEngine* engine = new QQmlApplicationEngine();
engine->rootContext()->setContextProperty("controller", controller);
However, with the most recent QtCreator I have the following warning: "Unqualified access”
While things keep to work I believe this will be more important if I start using the qml compilation to c++
Is there a way to make this access “qualified”?
Thanks!
Nuno
More information about the Interest
mailing list