title: Qt 5.4/Qml: Prevent binding loop
body: <p>I have a global singleton "Settings" which holds application settings. When I try to run the following code I get a <code>QML CheckBox: Binding loop detected for property "checked"</code>:</p>
  
  <pre><code>CheckBox {
      checked: Settings.someSetting                         
      onCheckedChanged: {
          Settings.someSetting = checked;
      }
  }
  </code></pre>
  
  <p>It is obvious why this error occurs, but how can I correctly implement this functionality without a binding loop? E.g. I want to save the current checked state of the checkbox in the settings singleton.</p>
  
  <p>I am using Qt 5.4 and Qml Quick 2. </p>
  
  <p>Regards,</p>