AbstractButton QML Type

Detailed Description

AbstractButton provides the interface for controls with button-like behavior; for example, push buttons and checkable controls like radio buttons and check boxes. As an abstract control, it has no delegate implementations, leaving them to the types that derive from it.

See Also

Property Documentation

 

[since QtQuick.Controls 2.3 (Qt 5.10)] action : Action

This property holds the button action.

This property was introduced in QtQuick.Controls 2.3 (Qt 5.10).

See Also

See also Action

autoExclusive : bool

This property holds whether auto-exclusivity is enabled.

If auto-exclusivity is enabled, checkable buttons that belong to the same parent item behave as if they were part of the same ButtonGroup. Only one button can be checked at any time; checking another button automatically unchecks the previously checked one.

The property has no effect on buttons that belong to a ButtonGroup.

RadioButton and TabButton are auto-exclusive by default.

autoRepeat : bool

This property holds whether the button repeats pressed(), released() and clicked() signals while the button is pressed and held down.

If this property is set to true, the pressAndHold() signal will not be emitted.

The default value is false.

The initial delay and the repetition interval are defined in milliseconds by autoRepeatDelay and autoRepeatInterval.

[since QtQuick.Controls 2.4 (Qt 5.11)] autoRepeatDelay : int

This property holds the initial delay of auto-repetition in milliseconds. The default value is 300 ms.

This property was introduced in QtQuick.Controls 2.4 (Qt 5.11).

See Also

[since QtQuick.Controls 2.4 (Qt 5.11)] autoRepeatInterval : int