Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 ? qt-project.org/doc/qt-4.8/qml-image.html#sourceSize-prop 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 stackoverflow.com. 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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.