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

Code typo in example

    XMLWordPrintable

Details

    • eedb9980c89e77e21e1336195930a148b6a2e712

    Description

      In: http://doc.qt.nokia.com/4.7/qml-image.html#status-prop

      Snippet "Trigger a state change" :

       State { name: 'loaded'; when: image.status = Image.Ready }
      

      "image.status = Image.Ready" should be: "image.status == Image.Ready"

      (I actually spent a couple of minutes wondering why it wasn't working... Seems like this mistake will continue to annoy programmers in C-like languages for the years to come...)

      Attachments

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

        Activity

          People

            bealam Bea Lam (closed Nokia identity) (Inactive)
            gregschlom Gregory Schlomoff
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes