qc.Button

inherit qc.UIImage

Description

A standard button that can be clicked in order to trigger an event.

Varialbes

Variable Name Type Description
state int The state of button: UIState.NORMAL(normal state), UIState.PRESSED(button pressed), UIState.DISABLED(button is disable)
text qc.UIText The reference text node.
supportNativeEvent bool Is the button support native event of browser.

Events

Event Description
onStateChange When button's state changed, this event is triggered.
onNativeClick When native click, this event is triggered.

Manual

Button