Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-113855

qmlsc: unused import false positive for template strings

    XMLWordPrintable

Details

    • e81cff767 (dev), 0f452bda5 (6.6), ffa43ceb6 (6.5)

    Description

      Building the attached example turns into

      Info: Main.qml:3:1: Unused import [unused-imports]
      import scripts
      ^^^^^^
      Warning: Main.qml:12:26: Could not compile binding for text: Cannot generate efficient code for script lookup [compiler]
              text: `Result: ${Foo.getText()}`
                               ^^^
      

      . Removing the import breaks the app.

      Attachments

        For Gerrit Dashboard: QTBUG-113855
        # Subject Branch Project Status CR V

        Activity

          People

            ulherman Ulf Hermann
            cajus Cajus Pollmeier
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes