Qt Quick Templates are the foundations of Qt Quick Controls 2. 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.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.