IconButton.source (Image) not recognized in QtCreator
I use an IconButton to allow the user to play back alarm sounds:
IconButton {
icon.source: sound.playbackState === Audio.PlayingState
? "image://theme/icon-m-pause"
: "image://theme/icon-m-play";
onClicked: {
sound.source = selectedSound;
if(sound.playbackState === Audio.PlayingState) {
sound.stop();
} else {
sound.play();
}
}
}
As can be seen, the editor "doesn't know" about the source
Image.
The rendering error with sound.source: selectedSound;
in the screen shot is fixed.
I have no idea why the code rendering is so flawed here..?
In my app Fast Chess I have the
Rikujolla ( 2018-12-19 21:00:54 +0200 )editicon.source
error in SDK also. For me it seems to be only SDK problem. The validator doesn't claim against that nor it doesn't prevent the app to be accepted in the Harbour. I do not notice any effect on the app performance. The only problem seems to be that irritative message.