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

Binding - null value

XMLWordPrintable

    • da14688140550879e376e71cf273b16494e6c3c4

      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
          }
      }
      

        1. qtbug42888.zip
          2 kB
          Joni Poikelin
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes