SVG is not supported on preview mod
-
I'm developing a desktop application, and there are some SVG resources that should be used. Everything works fine when I run the build — the icons display normally. However, when I run in preview mode, it always raises the following error:
qrc:/qt/qml/RemoteControl/Main.qml:180:30: QML Icon: Error decoding: qrc:/qt/qml/RemoteControl/images/power.svg: Unsupported image format,
In preview mode, the icon does not show either. Is there any known way to fix this? -
Hi and welcome to devnet,
Might be a silly question but do you mean this preview mode ?
If so, which version of Qt Creator are you using ? -
Hi and welcome to devnet,
Might be a silly question but do you mean this preview mode ?
If so, which version of Qt Creator are you using ? -
Can you start Qt Creator from the command line using the
QT_DEBUG_PLUGINSenvironment variable set to one and then use the preview mode ?
I am wondering whether the svg plugin gets lost somehow.
