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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • QDS 4.8.0
    • QDS 4.7.1
    • Qt-Bridge-Figma
    • None
    • Windows 1022H2, Figma 125.3.6
    • 756a374da (qds/dev)
    • QDS Berlin - 2025 Week 23/24

      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"
              }
          ]
      }
      

        1. figma-z_order-different.png
          22 kB
          Sze Howe Koh
        2. qds-z_order-same.png
          45 kB
          Sze Howe Koh
        3. ZOrderVariant.fig
          27 kB
          Sze Howe Koh
        4. zOrderVariant.qtbridge
          6 kB
          Sze Howe Koh
        5. QDS-15232.fig
          37 kB
          Przemyslaw Lewandowski
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes