- Qt 5.15
- Qt Quick Controls
- Qt Quick Templates 2
- Qt 5.15.19 Reference Documentation

# Qt Quick Templates 2

Qt Quick Templates are the foundations of Qt Quick Controls. Templates are non-visual implementations of controls' logic and behavior. They offer an interface to visualize the controls in QML using Qt Quick.

Even though the templates aim to be as style-agnostic as possible, in some cases they have to make certain assumptions about the visual structure of a control. For example, a spinbox has buttons that increment and decrement the value of the spinbox. In order to implement the behavior of a spinbox, the spinbox template needs to know if the user is interacting with the up or down button. A visual implementation of the spinbox template merely needs to position the up and down buttons and visualize them in normal, pressed, and disabled states. Any input event handling and state processing is taken care of by the underlying template.

## Related Information

- Qt Quick
- Qt Quick Controls
- Qt Quick Templates 2 QML Types