If I change it to qrc://images/icon2.jpg, I will have the follow errors:
QML debugging is enabled. Only use this in a safe environment.
file:///usr/ubuntu-sdk-dev/qml/Ubuntu/Components/1.3/OptionSelectorDelegate.qml:297:9: QML QQuickImage: Request for opening non-local file qrc://images/icon2.jpg
file:///usr/ubuntu-sdk-dev/qml/Ubuntu/Components/1.3/OptionSelectorDelegate.qml:297:9: QML QQuickImage: Request for opening non-local file qrc://images/icon2.jpg
file:///usr/ubuntu-sdk-dev/qml/Ubuntu/Components/1.3/OptionSelectorDelegate.qml:297:9: QML QQuickImage: Request for opening non-local file qrc://images/icon2.jpg
file:///usr/ubuntu-sdk-dev/qml/Ubuntu/Components/1.3/OptionSelectorDelegate.qml:297:9: QML QQuickImage: Request for opening non-local file qrc://images/icon2.jpg
The usage for [image: "images/icon2.jpg"] should be right since it does not complain anything about it.
If I change it to qrc://images/ icon2.jpg, I will have the follow errors:
QML debugging is enabled. Only use this in a safe environment. /usr/ubuntu- sdk-dev/ qml/Ubuntu/ Components/ 1.3/OptionSelec torDelegate. qml:297: 9: QML QQuickImage: Request for opening non-local file qrc://images/ icon2.jpg /usr/ubuntu- sdk-dev/ qml/Ubuntu/ Components/ 1.3/OptionSelec torDelegate. qml:297: 9: QML QQuickImage: Request for opening non-local file qrc://images/ icon2.jpg /usr/ubuntu- sdk-dev/ qml/Ubuntu/ Components/ 1.3/OptionSelec torDelegate. qml:297: 9: QML QQuickImage: Request for opening non-local file qrc://images/ icon2.jpg /usr/ubuntu- sdk-dev/ qml/Ubuntu/ Components/ 1.3/OptionSelec torDelegate. qml:297: 9: QML QQuickImage: Request for opening non-local file qrc://images/ icon2.jpg
file://
file://
file://
file://
The usage for [image: "images/icon2.jpg"] should be right since it does not complain anything about it.
Best regards,
XiaoGuo