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

variant properties assigned bool do not work properly.

XMLWordPrintable

      I would expect this to show "NO" and "NO". It shows "YES" and "NO".

      import Qt 4.7
      
      Column {
          Text {
              property variant prop : false
              text: prop ? "YES" : "NO"
          }
          Text {
              property bool prop : false
              text: prop ? "YES" : "NO"
          }
      }
      

      Once assigned to in script, the variant will properly hold a bool value.

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

            aakenned Aaron Kennedy
            wallison Warwick Allison (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes