[SOLVED] QtSvg on iOS
Just can't get how to enable svg support for iPhone on Mac. I have compiled qt5 from git, make qtbase, make qtsvg. Adding libQt5Svg.a, libQt5Xml.a libraries manually seem does not affect anything.
QImageReader::supportedImageFormsts() does not contain "svg"
Hi and welcome to devnet,
Did you add
@QT += svg@
To your pro file ?
Hi, and thanks. I have
@CONFIG += svg xml@
i should try to add your line, because behavior would be different
Yes it would, QT += is the line used to tell which module from Qt you want to use. On the other hand CONFIG is for compilation related stuff.
You can find more information in qmake's Variable Reference documentation
Thanks, now libQt5Svg is added automatically after qmake. Android required only CONFIG option.
Svg still unavailable on device (iOS simulator). I can read in documentation that on Mac qsvg icon plugin is deployed automatically if QtSvg Module is selected. But i haven't shared library for qsvg plugin that would be deployed (only static lib is built by default - libqsvg.a).
So i whether should try to build Qt as shared library or post something on bugtracker.
Then you'll have to follow the static plugin documentation
I need to explicitly import plugin with
Because Qt is built staticaly...
Thank you for helping to investigate this!
You're welcome !
Don't forget to update your thread's title to solved so other forum users may know that a solution to the problem has been found :)