KDE Frameworks 5 porting aid KSJEmbed provides a method of binding JavaScript objects to QObjects, so you can script your applications.