View Single Post
Markkyboy's Avatar
Posts: 433 | Thanked: 727 times | Joined on Oct 2012 @ Costa Blanca, Espaņa
#41
Originally Posted by Ancelad View Post
Code:
import QtFeedback 5.0

HapticsEffect {
	id: activeEffect
	duration: 500 // in ms
	intensity: 0.2 // from 0 to 1 with 0.1 step-size
	running: button.pressed
}
Button {
        id: button
	width: text.width
	text: "Test"					 
        anchors.horizontalCenter: parent.horizontalCenter
	onClicked: activeEffect.start()          
}
Excellent!, just what I needed and with a little jigger-pokery I now have 29 buttons with short feedback and will be inserting this into other "remote-control" app projects.

Thanks very much!

Regards,
__________________
..oO(Don't just sit there standing around, pick up a shovel and sweep up!)Oo..
 

The Following 4 Users Say Thank You to Markkyboy For This Useful Post: