Frage

After renaming my signal from "testSignal" to "DevFound" in C++ I get QML error:

Cannot assign to non-existent property "onDevFound" onDevFound: console.log(device)

I have tried to clean, rebuild, delete build files and restart Qt Creator.

War es hilfreich?

Lösung

I renamed my C++ signal name from "testSignal" to "DevFound". The problem was the the signal name needs to start with a lower case letter so new name is "devFound".

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top