QML Image: Error decoding: qrc:/icons/erase.svg: Unsupported
It's not that big a deal for me as I can change it to png, but
I suppose it would be nice to have SVG support in some cases.
Harri
Well, for me:
Image {
source: "qrc:/icons/erase.png"
}
works, but
Image {
source: "qrc:/icons/erase.svg"
}
does not work on Android. Both work in simulator or N9/Meego.
Harri
On Android I've only tested on Nexus One physical phone.
On 02/23/2012 05:43 PM, Enrico Miglino wrote:
> Hi,
>
> just a clarification. You mean that works on N9/harmattan physical
> device (and it's obvious) or harmattan simulator of Android simulator ?
>
> If it works on android simulator - it is a concern of mine too - then
> the problem maybe that some qt libraries are not installed on the
> android device...
>
> Enrico
>
> On 23 February 2012 17:39, Harri Pasanen <ha...@mpaja.com
yes I did. I'll need to check if it got deployed though.
Harri
The QtSvg library is checked.
Everything got deployed, but it doesn't work.
lib/libQtSvg.so -> /data/local/qt/lib/libQtSvg.so
plugins/imageformats/libqsvg.so ->
/data/local/qt/plugins/imageformats/libqsvg.so
But I still get:
QML Image: Error decoding: qrc:/icons/erase.svg: Unsupported image format
Btw. Another small glitch I noticed is that QML Page element does not
seem to
respect anchors in layout. As setting y property works, I can go around it.
The show stopper for me is the virtual keyboard.
It pops up, but I can't get rid of it.
I tried TextField.platformCloseSoftwareInputPanel() to close it
"manually", but
that does not seem to exist.
Harri
Yes, tried with backspace.svg from Nokia Symbian icons, same results, it
doesn't work
for me.
I'd imagine the SVG engine is the same in android-qt as regular Qt?
From the symptoms it does look like the SVG plugin does not get installed.
Harri
I know this is an old topic but I thought I'd reply with an answer that worked for me. I was also having trouble fully running the flickr components example due to svg's not being supported. I traced the problem down to not fully loading the plugins dependencies. The imageformats/libqsvg.so depends on the following Qt libraries. QtSvg, QtXml, QtGui, and QtCore. If you deploy your project without those libraries checked svg's will not work.