| Requires: |
|
QButton
control for more details and the demos). There're three states defined for a button: released,
pressed and disabled. For both released and pressed states different images must be provided.
Image for disabled state is optional. Usually the last state is represented by a dimmed version of the
released state image. All images should have the same dimensions.
QButtonRes(style, width, height, normal, pressed, disabledopt) |
|---|
|
Creates new button resource.
Parameters
style - Style of the button (see QButton class constants for details).width - Width of the button (in pixels).height - Height of the button (in pixels).normal - URL of "normal" state picture.pressed - URL of "pressed" state picture.disabled - Optional. URL of "disabled" state picture (this picture should be a dimmed version of one for normal state). |
| Property | Access | Description |
|---|---|---|
style | R | Style of the button. |
width | R | Width of the button (in pixels). |
height | R | Height of the button (in pixels). |
imgN | R | Refers to Image object of normal state. |
imgP | R | Refers to Image object of pressed state. |
imgD | R | Refers to Image object of disabled state (if any, null otherwise). |