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

Update the best practice documentation for QML

    XMLWordPrintable

Details

    • 539b9472eeec454641fab89fea52bbd687337188

    Description

      We should at the very least discourage unqualified lookups, and provide alternatives there:

      • Using functions with parameters instead of injected signal parameters
      • Use required properties to avoid injecting model roles
      • Qualifying property accesses instead of relying on lookups in the root scope
        Notably, we shouldn't encourage the use of setContextProperty in the "good" part of the page.

      We should also further investigate what else can be mentioned there.

      Attachments

        Issue Links

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

          Activity

            People

              max.goldstein Maximilian Goldstein
              fabiankosmale Fabian Kosmale
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: