Forums

OverviewFelgo 2 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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support