Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove Warning- QML Connections: Cannot assign to non-existent property "onValueChanged"

Tags:

qt

qml

My code runs fine as expected but why do I get the warning messsage:

QML Connections: Cannot assign to non-existent property "onValueChanged"

Here is how I linking to signal.

Connections {
    target: myModel
    onValueChanged: {
        console.log("Valued changedRecieved in QML")
    }

myModel is a C++ class that I am exposing to QML using engine.rootContext()->setContextProperty("myModel", &model);

Is there a way to remove this warning?

like image 563
zar Avatar asked Jan 24 '26 22:01

zar


1 Answers

In your Connections scope just set ignoreUnknownSignals: true

like image 127
ToeBee Avatar answered Jan 26 '26 22:01

ToeBee



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!