Description of type QPushButton¶
Properties of type QmlPushButton¶
Below is a list of the available properties provided by the QmlPushButton type. Click on a property name to see its detailed description and examples.
| Property | Description | 
|---|---|
| text | The label text displayed on the button. Can be plain text or empty. | 
| enabled | If false, the button is disabled and cannot be clicked. Default istrue. | 
| visible | Whether the button is visible in the UI. Inherited from QWidget. | 
| autoDefault | If true, the button becomes the default button when it receives focus. | 
| default | If true, the button is the default button in the dialog or window. | 
Methods of type QmlPushButton¶
Below is a list of the available methods provided by the QmlPushButton type. Click on a method name to see its detailed description and examples.
| Method | Description | 
|---|---|
| setText(text) | Sets the text displayed on the button. | 
| setEnabled(enabled) | Enables or disables the button. | 
| click() | Programmatically simulates a button click. Emits clicked()signal. | 
| animateClick() | Animates the button press and release, then emits clicked(). | 
Signals of type QmlPushButton¶
Below is a list of the available signals provided by the QmlPushButton type. Click on a signal name to see its detailed description and examples.
| Signal | Description | 
|---|---|
| clicked() | Emitted when the button is clicked (pressed and released). Main signal for handling button actions. | 
| pressed() | Emitted when the button is pressed down. | 
| released() | Emitted when the button is released (after being pressed). | 
| toggled(bool) | Emitted only if the button is checkable. Indicates new checked state. |