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

[Figma Bridge] Variants: Changes in Z-order are not captured

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • QDS 4.7.1
    • Qt-Bridge-Figma
    • None
    • Windows 1022H2, Figma 125.3.6

    Description

      In the attached project, the 2 variants contain elements that are identical in every way except for their Z-order. When converted to QML, Z-orders in the Alt variant are lost.

      Figma

       

      Qt Design Studio

       

      In the code below, we expect something like PropertyChanges { target: redSquare; z: 1} in "pattern_Alt":

      import QtQuick
      import QtQuick.Controls
      
      Rectangle {
          id: myPattern
          state: "pattern_Default""
          // ...
      
          Rectangle {
              id: redSquare
              // ...
          }
      
          Rectangle {
              id: greenSquare
              // ...
          }
          states: [
              State {
                  name: "pattern_Alt"
              },
              State {
                  name: "pattern_Default"
              }
          ]
      }
      

      Attachments

        1. figma-z_order-different.png
          figma-z_order-different.png
          22 kB
        2. qds-z_order-same.png
          qds-z_order-same.png
          45 kB
        3. ZOrderVariant.fig
          27 kB
        4. zOrderVariant.qtbridge
          6 kB

        Issue Links

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

          Activity

            People

              algerman Aleksei German
              skoh-qt Sze Howe Koh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes