Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 Support (Qt 5) › SVG image

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #20609

    Phil

    Hello,

    I’m trying to use an svg as an image, however the project complains that the image format is unsupported. I’ve followed the steps from the Qt docs here and I’m using the icon in the below directory, so it should have correct syntax:

    ~/FelgoSDK/Examples/Felgo/demos/PlatformerWithLevelEditor/assets/icon/icon.svg

    QML Image: Error decoding: file:///Users/<user>/Library/Application Support/Felgo Live Client/<my_app>//assets/icon.svg: Unsupported image format

    Thanks,

    Phil

    #20613

    Alex
    Felgo Team

    Hi Phil,

    the current version of the Felgo Live Client does not add the SVG Qt module, thus they are not shown.

    You can enable SVG support on mobile platforms with the following line in your *.pro config file:

    QT += svg

    If you want to use live reloading with your own *.pro config (or custom C++ and native code), please use the Live Client Module to build your won own Live Clients: https://felgo.com/updates/release-2-16-1-live-code-reloading-with-custom-c-and-native-code-for-qt

    We will add SVG support to the Live Client with the next update, thank you for bringing this up.

    Cheers,
    Alex

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded