[Interest] [External] [SVG] QML Image: Error decoding

Kristoffersen, Even (NO14) Even.Kristoffersen at Honeywell.com
Tue Jul 17 10:30:12 CEST 2018


Do you have QT_PLUGIN += qsvg in your .pro file as well?

-Even

From: Interest [mailto:interest-bounces+even.kristoffersen=honeywell.com at qt-project.org] On Behalf Of Oleg Evseev
Sent: 16. juli 2018 17:56
To: Qt Project <interest at qt-project.org>
Subject: [External] [Interest] [SVG] QML Image: Error decoding

Hi!

Got error:
QML Image: Error decoding: qrc:/images/Bluebubble.svg: ???????????????? ?????? ???????????

for such reduced code in my big project:


ApplicationWindow {

    id: application

    width: 1280

    height: 800
    visible: true


    Image {

        source: "qrc:/images/Bluebubble.svg"

    }
}

But accelbubble example with in fact the same code decodes and renders svg fine!

I do not understand the difference. I do have QT += svg xml in my .pro file, also just in case, I tried to add same modules from my project to .pro of accelbubble example and same imports to qml - it still runs fine.
Tried different svg files with different formats - same result. accelbubble render any file, my project - none.
It blows my mind.

Thanks in advance for any help.

--
With regards, Oleg.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180717/3dfa9ca2/attachment.html>


More information about the Interest mailing list