AbstractButton QML Type

The AbstractButton class defines the behavior of the button. More...

Import Statement: import Ubuntu.Components 1.2
Inherited By:

Button, CheckBox, Empty, and PickerDelegate.

Properties

Signals

Detailed Description

This class defines the behavior of the button. All components deriving from this class support haptic feedback out of the box.

If an action is specified, the button's clicked signal will trigger the action. Subclasses of AbstractButton can use other properties of action (for example the text and iconName).

Property Documentation

hovered : bool

True if the mouse cursor hovers over the button's mouse area.


pressed : bool

True if the user presses a mouse button in the button's mouse area.


Signal Documentation

clicked()

This handler is called when there is a mouse click on the button and the button is not disabled. If action is defined, the action will be triggered.


pressAndHold()

This handler is called when there is a long press.