Adding Bindings Between Properties
For more information about the use of property bindings, see Property Binding.
You can create bindings between objects in the Connections view.
To bind a property of an object to the property of another object:
- In the Connections view, select the Bindings tab.
- Select the (Add) button to add a binding for the currently selected item. The ID is displayed in the Item column.
- Double-click the value in the Property column to select the property to bind to a source property.
- Double-click the value in the Source Item column to select the object whose property you want to use to determine the behavior of the target object.
- Double-click the value in the Source Property column to select the property to bind the target property to.
For more information, watch the following video:
You can use the following logical operators in the expressions to combine several conditions in one expression:
|Operator||Meaning||Evaluates to |
|!||NOT||The condition is not met.|
|&&||AND||Both conditions are met.|
|||||OR||Either of the conditions is met.|
|<||Less than||The left operand is less than the right operand.|
|>||Greater than||The left operand is greater than the right operand.|
|>=||Greater than or equal||The left operand is greater than or equal to the right operand.|
|<=||Less than or equal||The left operand is less than or equal to the right operand.|
|==||Equal||The operands are equal.|
|===||Strict equal||The operands are equal and of the same type.|
|!=||Not equal||The operands are not equal.|
|!==||Strict not equal||The operands are of the same type but not equal, or are of different type.|
In addition, you can use arithmetic operators to compare numbers before checks. However, we recommend that you create separate properties for this purpose whenever possible.
Available under certain Qt licenses.
Find out more.