Public bug reported: I have developed a sample code at https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.Components.OptionSelector/. My example code is at:
https://github.com/liu-xiao-guo/optionselector The following part of the code has problems: Component { id: selectorDelegate OptionSelectorDelegate { text: name; subText: description; iconSource: { return Qt.resolvedUrl(image) } } } ListModel { id: customModel ListElement { name: "Name 1"; description: "Description 1"; image: "images/icon2.jpg" } ListElement { name: "Name 2"; description: "Description 2"; image: "images/icon2.jpg" } ListElement { name: "Name 3"; description: "Description 3"; image: "images/icon2.jpg" } ListElement { name: "Name 4"; description: "Description 4"; image: "images/icon2.jpg" } } The images are defined in the qrc files. However, when I run the app, the image is shown as black. Attached please find the captured picture. Thanks & best regards, XiaoGuo ** Affects: ubuntu-ui-toolkit (Ubuntu) Importance: Undecided Status: New ** Attachment added: "a.png" https://bugs.launchpad.net/bugs/1556757/+attachment/4598454/+files/a.png -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in Ubuntu. https://bugs.launchpad.net/bugs/1556757 Title: optionselector does not display image correctly Status in ubuntu-ui-toolkit package in Ubuntu: New Bug description: I have developed a sample code at https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.Components.OptionSelector/. My example code is at: https://github.com/liu-xiao-guo/optionselector The following part of the code has problems: Component { id: selectorDelegate OptionSelectorDelegate { text: name; subText: description; iconSource: { return Qt.resolvedUrl(image) } } } ListModel { id: customModel ListElement { name: "Name 1"; description: "Description 1"; image: "images/icon2.jpg" } ListElement { name: "Name 2"; description: "Description 2"; image: "images/icon2.jpg" } ListElement { name: "Name 3"; description: "Description 3"; image: "images/icon2.jpg" } ListElement { name: "Name 4"; description: "Description 4"; image: "images/icon2.jpg" } } The images are defined in the qrc files. However, when I run the app, the image is shown as black. Attached please find the captured picture. Thanks & best regards, XiaoGuo To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1556757/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp