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

Incorrect syntax in "Code-Behind Implementation Resource" documentation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.6.3
    • 5.7.0
    • Documentation
    • None
    • 4fae8ff1e73eeb48734b28a9c846fbdff1c2ffe1

    Description

      On http://doc.qt.io/qt-5/qtqml-javascript-resources.html#code-behind-implementation-resource, there is a snippet that has the following code:

      property var clickCount = 0;   // this state is separate for each instance of MyButton
      

      I've never seen this syntax before; if it's actually some kind of extension to JS syntax, it should be documented.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes