Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Qt 4.7
- BorderImage {
- id: buttonbase
- signal clicked
- property bool pressed: hitbox.pressed && hitbox.containsMouse
- source: pressed ? "button_down.png" : "button_up.png"
- border.left: 50;
- border.right: 50;
- MouseArea {
- id: hitbox
- anchors.fill: parent
- onClicked: parent.clicked()
- }
- }
Add Comment
Please, Sign In to add comment