<trclass="memdesc:a6a03a1d2ac1775e202aa7ae65fb76315"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Flags to control how to bind the properties. <ahref="class_qt_mvvm_1_1_binding.html#a6a03a1d2ac1775e202aa7ae65fb76315">More...</a><br/></td></tr>
<trclass="memdesc:ad2adb445f984744db703b2554952b36e"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Specifies whether the binding is a valid and active binding. <ahref="#ad2adb445f984744db703b2554952b36e">More...</a><br/></td></tr>
<trclass="memdesc:abb9d7693a1be0de37fccedcd914f54f5"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Specifies whether the binding is a valid and active binding. <ahref="#abb9d7693a1be0de37fccedcd914f54f5">More...</a><br/></td></tr>
<trclass="memdesc:abc595c43c2be664a66f9f178a4663b2a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Remove the binding by disconnecting all change signals. <br/></td></tr>
<divclass="textblock"><p>A handle to a multidirectional binding between properties. </p>
<p>This class is returned by the <aclass="el"href="namespace_qt_mvvm.html#affee350f1bec121b95759bb02a4df50f"title="Create a multidirectional binding between properties. ">bind()</a> function as a handle to a binding. It can be used to check if the binding is valid and can remove a binding again.</p>
<dlclass="section note"><dt>Note</dt><dd>You don't need to keep the <aclass="el"href="class_qt_mvvm_1_1_binding.html"title="A handle to a multidirectional binding between properties. ">Binding</a> as reference. The binding will stay even if you don't hold any references to it. This class serves as a passive watcher over a binding.</dd></dl>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="namespace_qt_mvvm.html#affee350f1bec121b95759bb02a4df50f"title="Create a multidirectional binding between properties. ">QtMvvm::bind</a></dd></dl>
<pclass="definition">Definition at line <aclass="el"href="binding_8h_source.html#l00014">14</a> of file <aclass="el"href="binding_8h_source.html">binding.h</a>.</p>
<p>Flags to control how to bind the properties. </p>
<tableclass="fieldtable">
<tr><thcolspan="2">Enumerator</th></tr><tr><tdclass="fieldname"><aid="a6a03a1d2ac1775e202aa7ae65fb76315ab4f4583ffedfaf5c9776d90ea7cb7ece"></a>SingleInit </td><tdclass="fielddoc"><p>Only initialize the view by settings it to the viewmodels value on creation. </p>
</td></tr>
<tr><tdclass="fieldname"><aid="a6a03a1d2ac1775e202aa7ae65fb76315af6a94905cd1372ea564100ead04360b9"></a>OneWayToView </td><tdclass="fielddoc"><p>All changes done to the viewmodel are propagated to the view. </p>
</td></tr>
<tr><tdclass="fieldname"><aid="a6a03a1d2ac1775e202aa7ae65fb76315aa50e49b9b126b3dddd0278133312f100"></a>OneWayToViewModel </td><tdclass="fielddoc"><p>All changes done to the view are propagated to the viewmodel. </p>
</td></tr>
<tr><tdclass="fieldname"><aid="a6a03a1d2ac1775e202aa7ae65fb76315a8248e753de211820e05f5b5e35ad9db8"></a>TwoWay </td><tdclass="fielddoc"><p>All changes on both sides are propagated to the other one. </p>
</td></tr>
</table>
<pclass="definition">Definition at line <aclass="el"href="binding_8h_source.html#l00020">20</a> of file <aclass="el"href="binding_8h_source.html">binding.h</a>.</p>
</div>
</div>
<h2class="groupheader">Member Function Documentation</h2>
<p>Specifies whether the binding is a valid and active binding. </p>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> If the binding is valid and active, <code>false</code> if invalid or already unbound</dd></dl>
<p>A binding is considered valid is if has successfully been set up and has not been unbound yet. A valid binding means view and viewModel are valid can the properties could be found.</p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_binding.html#abc595c43c2be664a66f9f178a4663b2a"title="Remove the binding by disconnecting all change signals. ">Binding::unbind</a>, <aclass="el"href="namespace_qt_mvvm.html#affee350f1bec121b95759bb02a4df50f"title="Create a multidirectional binding between properties. ">bind()</a></dd></dl>
<p>Specifies whether the binding is a valid and active binding. </p>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> If the binding is valid and active, <code>false</code> if invalid or already unbound</dd></dl>
<p>A binding is considered valid is if has successfully been set up and has not been unbound yet. A valid binding means view and viewModel are valid can the properties could be found.</p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_binding.html#abc595c43c2be664a66f9f178a4663b2a"title="Remove the binding by disconnecting all change signals. ">Binding::unbind</a>, <aclass="el"href="namespace_qt_mvvm.html#affee350f1bec121b95759bb02a4df50f"title="Create a multidirectional binding between properties. ">bind()</a></dd></dl>