Adding Connections

  • Connecting Components to Signals

    A signal and handler mechanism enables components to respond to application events, which are represented by signals. When a signal is emitted, the corresponding signal handler is invoked to respond to the event by applying an action, for example.

  • Adding Bindings Between Properties

    A component's property can be assigned a static value that stays constant until it is explicitly changed. To make the UI more dynamic, you can use property bindings. This means that you can specify relationships between component properties so that when the value of a property changes, the values of any properties that are bound to it are automatically updated accordingly.

  • Specifying Dynamic Properties

    Each preset component has a set of preset properties that you can specify values for. You can add custom properties that would not otherwise exist for a particular component type or your custom components.

  • Managing C++ Backend Objects

    Application developers can access QObject objects implemented in C++ from QML files.

For an example of using properties, bindings, and connections to create a scalable push button, see Creating Scalable Buttons and Borders.

© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.