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

Gradients imports in states breaks Components with States

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • QDS 4.7.0
    • QDS 4.6.2
    • Qt Bridge Importer
    • None
    • 9093ff231 (qds/dev), eda279d41 (qds/4.7)
    • QDS Berlin - 2025 Week 5/6, QDS Berlin - 2025 Week 7/8

    Description

      Depending on default variant of a Component Set, qml code generated by importer might be invalid.
      > "Invalid property name 'visible'. (M16)"

      In particular, importer generates Gradient item with "visible: false" property, while visible property doesn't exist on Gradient type.

      Issue appears when default variant of an artboardSet doesn't have a gradient nodeChild, but at least one other variant does. Importer attempts to deactivate the gradient in the main body of qml code by generating "visible" property, which doesn't exist on Gradient type in QML.

      See attached .fig project (don't forget to activate basic gradients exports in bridge settings), generated .qtbridge or the generated QML code of components in the .zip.
      In all of them, there are 2 Components inside, one of them is functioning, another one is faulty, the only difference is order of defined, exported and generated states.

      Attachments

        1. BrokenGradient.fig
          37 kB
        2. BrokenGradient-1.fig
          43 kB
        3. brokenGradients1.qtbridge
          13 kB
        4. brokenGradients1.zip
          2 kB
        5. FixedGradient.fig
          39 kB
        6. image-2025-01-23-15-18-33-104.png
          image-2025-01-23-15-18-33-104.png
          40 kB
        7. image-2025-01-28-13-58-46-457.png
          image-2025-01-28-13-58-46-457.png
          83 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            pnd Przemyslaw Lewandowski
            algerman Aleksei German
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes