A push button with a text label More...
The ImageButton type provides a button with a text label that can be styled using images.
Here is a simple ImageButton:
import QtQuick 1.1 import "components" ImageButton { id: image_button1 width: 60 height: 40 text: "Test" imageUp: "images/internal_button_up.bmp" font.pixelSize: 18 textColor: "#000000" imageDown: "images/internal_button_dn.bmp" font.bold: false font.family: "Arial" onButtonClick: console.debug("clicked"); onButtonPress: console.debug("pressed"); onButtonRelease: console.debug("released"); }
If autoRepeat is enabled, then the buttonPress(), buttonRelease(), and buttonClick() signals are emitted at regular intervals when the button is down. autoRepeat is off by default. The initial delay and the repetition interval are defined in milliseconds by autoRepeatInterval.
Determines if the ImageButton is enabled.