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

Updates docs to let people know if and when they should (not) use setContextProperty and what alternatives are

XMLWordPrintable

    • All
    • fc8bb0ff5 (dev), 0d209bcdb (6.5)

      After reading comments on https://codereview.qt-project.org/c/qt/qtdoc/+/428648 I thought it might be a good idea to now document the patterns and anti-patterns around setContextProperty in docs even though it was explained elsewhere. IMHO using setContextProperty is a popular approach to implementing a kind of global variables. If we believe it is not good for some reason, people should be able to read about this in the docs

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

            ulherman Ulf Hermann
            vminenko Vladimir Minenko
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes