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

Binding - null value

    XMLWordPrintable

Details

    • da14688140550879e376e71cf273b16494e6c3c4

    Description

      Impossible to bind to a null value.

      Item
      {
          id: example
      
          property QtObject obj1
          property QtObject obj2: button.checked ? test: null
      
          QtObject { id: test }
      
          Column
          {
              Text { text: "obj1: " + obj1 }
              Text { text: "obj2: " + obj2 }
      
              Button
              {
                  id: button
                  text: "BUTTON"
                  checkable: true
                  checked: true
              }
          }
      
          Binding
          {
              target: example
              property: "obj1"
              value: obj2
          }
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              shausman Simon Hausmann
              guillaume.alarie Guillaume Alarie
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes