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

A Vector with "Scale" constraints imported as Shape QML, but not scaling in Qt Design Studio

    XMLWordPrintable

Details

    • Windows

    Description

      A Vector with "Scale" constraints in Figma is imported as Shape QML into Qt Design Studio, but it does not scaling to the parent.

       

      Steps to reproduce : 

      1. In Figma, create a Frame including a Vector data that with "scale" constraints. (Vertically and horizontally)

      • Please do not add any Effects to the vector data to let Qt Design Studio import it as a Shape QML Type.

      2. Export it via Qt Bridge for Figma plugin.

      • Please enable "Export vectors as shapes" setting in Settings/Additinal Settings.

      3. Import the .qtbridge file to Qt Design Studio, then open the generated QML file.
      The vector data will be converted to a Shape QML type, but it does not have any property settings to get it scaled to the parent.

      • The original reporter expected it has a "fillMode" property, but it does not exist.
      • If he manually add a "fillMode" property to the Shape QML in the generated file, Qt Design Studio detects it as a 'Invalid property name "fillMode". (M16)'  error.

      When the vector data was exported without enabling "Export vectors as shapes", Qt Design Studio converted it to Image QML having the properties below:
              sourceSize.width: width
              sourceSize.height: height

      This is scalable, but the original reporter still prefer Shape QML because he wants to dynamically switch the vector color within QML application.

      Attachments

        Issue Links

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

          Activity

            People

              algerman Aleksei German
              hitoshiito Hitoshi Ito
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes