KSJEmbed provides a method of binding JavaScript objects to QObjects, so you can script your applications.