Why .svg images is not showing ?
-
When I am making a page dynamic in qml then all data are showing perfectly and the images which have .png extension are also showing but when it's comes to .svg images then its showing blank. on console the path is there and correct but in output i don't understand what's wrong. btw i am not showing local images , the images are from server
-
@trupti007 Which Qt version?
Which OS?
Check whether libqsvg.so has all dependencies (I assume Linux here):ldd libqsvg.so
Can same SVG images be shown in an image viewer?
-
If you are using a .pro file then my first guess would be that you are missing
QT += svg
. -
Does AppStudio use qmake in the background? If so, there should be somewhere a Qt project file ending in
.pro
. This file needs to contain a lineQT += svg
. Otherwise there should be a different way to tell AppStudio to add the Qt module for SVGs. -
@trupti007 what platform are you targeting ?
IIRC iOS for example has currently (in qt) no support for SVG -
@SimonSchroeder there is no such files