answered
2019-09-18 13:29:08 +0200
This post is a wiki.
Anyone with karma >75 is welcome to improve it.
I was indeed using it incorrectly. Originally I had done something like:
HighlightImage {
source: "image://theme/" + !Env.isOnline
? "icon-m-wlan-no-signal"
: "icon-m-wlan"
anchors.horizontalCenter: parent.horizontalCenter
}
Which gave
[W] unknown:343 - file:///usr/share/harbour-currencyconverter/qml/pages/FrontPage.qml:343:13: QML HighlightImageBase: Cannot open: file:///usr/share/harbour-currencyconverter/qml/pages/icon-m-wlan-no-signal
Doing this it works:
HighlightImage {
source: !Env.isOnline || workOffline
? "image://theme/icon-m-wlan-no-signal"
: "image://theme/icon-m-wlan"
anchors.horizontalCenter: parent.horizontalCenter
width: 64
height: 64
}
Paste a snippet of your code here, seems like you're using it incorrectly, but I'm not sure.
Spam Hunter ( 2019-09-18 13:03:49 +0200 )edit