Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-15217

Qt Bridge fails to import vector path

    XMLWordPrintable

Details

    Description

      Steps to reproduce

      1. Use Figma to load the attached *.fig file, which contains a single Vector Path
      2. Export it with Qt Bridge for Figma, and import it into Qt Design Studio

       

      Outcomes
      The export completes without any errors/warnings, but the import fails:

      Processing component Lock.ui.qml
          Error parsing custom QML property. path: "M 1.2742012739181519 33.94687271118164 C ... Z". Define valid properties. For more information see Properties documentation.
      

       

      Workaround (Very impractical)

      Copy the full path property value from the error log, and paste it into the PathSvg in Lock.ui.qml:

      path: "M 1.2742012739181519 33.94687271118164 C ... Z" 

      The expected image appears in the 2D view immediately. (It's very pixellated, but that's a different problem: QDS-15220)

      This shows that the property in the *.qtbridge file was fully valid, so the error message was bogus.

      Attachments

        For Gerrit Dashboard: QDS-15217
        # Subject Branch Project Status CR V

        Activity

          People

            pnd Przemyslaw Lewandowski
            skoh-qt Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change