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

Add method to instruct qmllint about intentional unqualified access

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • 6.11
    • None
    • QML: Tooling
    • None

      In our old and huge QML code base we have JavaScript functions in the QML root object that provide frequently used L10N and layouting features. They are used via unqualified access and this won't change unless we decide to throw away the entire code base.

      Sadly this set design choise collides massively with qmllint's continiously improving ability to discover unqualified access. For many of your QML modules Qt Creator is nothing but a huge, yellow qmllint warning mess because of this unqualified access, rendering both Qt Creator and qmllint entirely useless for our project.

      Please add a method to instruct qmllint about intentional unqualified access. Be it an external configuration file. Be it annotations to the functions which are used by intentional unqualified access. Be it via some C++ API to register globally accessible JavaScript functions.

      Please help!

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

            sami.shalayel Sami Shalayel
            hasselmann_via_meiller Mathias Hasselmann
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: