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

Bridge importer can generate component named Component

    XMLWordPrintable

Details

    • 0baaae8f5 (qds/dev)
    • QDS Berlin - 2023 Week 3/4

    Description

      If user calls their component "Component" in Figma, it will pass both exporter and importer and Bridge will generate Component.ui.qml, and will use its instances like

      Component { 
      id: component1; 
      x: 0 
      .... }  

       

      "Component" is a reserved type name in QML (Component QML Type) and it's usage might cause errors with property overrides in generated files (see attachment)

      Components names should be sanitized to prevent such cases

      Attachments

        Activity

          People

            vikas Vikas Pachdha
            algerman Aleksei German
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: