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

Best Practices for QML and Qt Quick should encourage declarative bindings over imperative assignments

    XMLWordPrintable

Details

    • 63042da9c94fd8d04583631249a7bfa54ba2656f (qt/qtdeclarative/5.13)

    Description

      https://doc.qt.io/qt-5/qtquick-bestpractices.html

      This is an unspoken rule that should be spoken.

      • Imperative code interferes with tooling, as it requires JavaScript, which e.g. Qt Quick Designer doesn't support.
      • It delays errors that could be found at build time (with qtquickcompiler?) to run time.
      • It's slow. All your bindings are first evaluated with null objects and then again with the real objects.

      Attachments

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

        Activity

          People

            mitch_curtis Mitch Curtis
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes