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

Anchor is not properly imported from Figma Bridge

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • QDS 4.3
    • QDS 4.1
    • Qt Bridge Importer
    • None
    • Windows

    Description

      Here is the QDS I'm using.

      I attached the project "test_proj" to reproduce the issue.
      It has git logs respectively for "before importing the first design" "after importing the first design" and "after importing the third design" to make it easier for you to see the behavior.
      The project also has .qtbridge under test_proj/figma_design_projects.

       

      The first design(test_proj/figma_design_projects/ver1/alignment.fig) has a Frame and a Rectangle inside.

      The Rectangle is anchored to the center of the Frame.

      As I imported this(test_proj/figma_design_projects/ver1/alignment.qtbridge), I got this result.

      The generated QML has "anchors.centerIn : parent," which is good.

       

      Now in the next design(test_proj/figma_design_projects/ver2/alignment.fig), I changed the anchoring of the Rectangle to bottom right.

       

      When I imported this design(test_proj/figma_design_projects/ver2/alignment.qtbridge), I got this result.
      As you can see, the Rectangle is still centered. This is because anchors.centerIn: parent is still there in the code, where it should've been removed.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              vikas Vikas Pachdha
              mikio_hirai Mikio Hirai
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes