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

Qt Bridge for Figma places assets into wrong directories

    XMLWordPrintable

Details

    • 308256fd5 (qds/dev)
    • QDS Berlin - 2024 Week 29/30

    Description

      A sample Figma project is attached. Export it with "Settings->Additional settings->Create page hierarchy" ticked. Then one can get a .qtbridge file (also attached) to be imported into QDS.

      The project structure and code look like:

      Looking at Projects view on the left pane, notice that all images are collected under "assets" which is on the same level as "Page 1" and "Page 2". And in the actual code, the source of Image is "assets/qt_1.png" which is wrong - there is no "assets" in the directory of current .ui.qml file. The issue is the same for the other page.

      A quick fix though: prefixing "../" to Image source so that it can correctly find "assets" on the upper level.

      Attachments

        1. image-2024-06-14-17-32-15-657.png
          image-2024-06-14-17-32-15-657.png
          223 kB
        2. QDS-13007.fig
          446 kB
        3. QDS-13007.qtbridge
          300 kB

        Issue Links

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

          Activity

            People

              vikas Vikas Pachdha
              luqiaochen Luqiao Chen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes