touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #36289
[Bug 1314594] Re: Image fails to load if only sourceSize.height or width is specified
** Changed in: ubuntu-ui-toolkit (Ubuntu)
Importance: Undecided => Low
** Changed in: ubuntu-ui-toolkit (Ubuntu)
Status: New => Confirmed
--
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/1314594
Title:
Image fails to load if only sourceSize.height or width is specified
Status in Ubuntu UI Toolkit:
Confirmed
Status in “ubuntu-ui-toolkit” package in Ubuntu:
Confirmed
Bug description:
By using the example at the bottom of this description, an error is reported on the console:
QML QQuickImage: Failed to get image from provider: image://scaling/0.444444//home/nerochiaro/projects/phone/camera/camera-app-desktop-camera/assets/zoom_plus@xxxxxx
(path is obviously specific to that test run, but the image mentioned in the error actually exists on disk)
Either removing sourceSize.height or adding sourceSize.width makes the
error disappear and the image loads correctly.
So it seems that the two sourceSize properties need to be either both
set or both unset, but it can't be just one.
import QtQuick 2.0
import Ubuntu.Components 0.1
Item {
width: 600
height: 600
Image {
anchors.centerIn: parent
source: "assets/zoom_plus.png"
sourceSize.height: units.gu(2) // if I remove this it all works just fine
}
}
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1314594/+subscriptions