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

variant properties assigned bool do not work properly.

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes