@NaveenKumar1203
Two general remarks, apart from the actual problem:
vibration is not working when I click the login button
Does that mean, the vibration works in main()?
here:
int main(int argc, char *argv[]) {
QGuiApplication app(argc, argv);
vibrate(10000);
return app.exec();
but not here:
Button {
onClicked: {
vibrationController.vibrate(1000);
}
In that case, please show your vibrationControllerextension class. My guess would be that it's either not exposed to QML correctly, or vibrate()is not Q_INVOKABLE.