Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use the QT5 from ppa:canonical-qt5-edgers/qt5-proper. When trying to use a SVG as ab image source like

Image {
    source: "sample.svg"
    height: 100
    width: 100

I get the following error:

QML QQuickImage: Invalid image data: file:///home/***/sample.svg

I am relatively sure though that the demo I wrote at the end of January, that also uses SVG images, worked at that time.

Can anyone reproduce the error and should this be reported as a bug, and if so, where?

share|improve this question
what happens if you use the sourceSize.width and sourcesSize.height tags ? you also have libqt5svg5 and libqt5svg5-dev Installed ? – Joseph Mills Feb 22 '13 at 3:47
I have now both those packages installed and also added sourceSize.width: 100 and sourcesSize.height: 100 but I get the same error. – djfun Feb 22 '13 at 10:19
I'm seeing the same error and it also worked in January for me. – xubuntix Feb 22 '13 at 10:50
i think you should post your question on They can help you with programming problems – Alen Feb 25 '13 at 14:38
@Alen While this question could technically fit into Stack Overflow, it is right here on Ask Ubuntu. Most Ubuntu Touch developers will keep an eye on the ubuntu-touch tag. – Octavian Damiean Feb 25 '13 at 14:49
up vote 1 down vote accepted

So the answer is, that the needed library was not packaged in the Qt 5.0.0 in ppa:canonical-qt5-edgers/qt5-proper. In Qt 5.0.1, which is currently in the ppa:canonical-qt5-edgers/qt5-beta-proper it works again.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.