Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. SVG is not supported on preview mod
Forum Updated to NodeBB v4.3 + New Features

SVG is not supported on preview mod

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 86 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nico520
    wrote last edited by
    #1

    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?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote last edited by
      #2

      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 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      N 1 Reply Last reply
      0
      • SGaistS SGaist

        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 ?

        N Offline
        N Offline
        Nico520
        wrote last edited by
        #3

        @SGaist , lol, thanks for your response,
        yes, my qt version: 16.10
        d53dc94d-6e37-413e-b025-31207dc2c8da-image.png
        run the icon here, it raises the not support error, but it is ok to run in the normal build.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote last edited by
          #4

          Can you start Qt Creator from the command line using the QT_DEBUG_PLUGINS environment variable set to one and then use the preview mode ?
          I am wondering whether the svg plugin gets lost somehow.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved