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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1556757

Title:
  optionselector does not display image correctly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1556757/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to