Hello. I want to use QtScript in MS Word. I never did it and wrote an example:
Qt Code:
  1. QAxObject *WordApplication = new QAxObject("Word.Application", this);
  2. WordApplication->setProperty("Visible", true);
  3. QAxScriptManager *scriptManager = new QAxScriptManager(this);
  4. scriptManager->addObject(WordApplication);
  5. scriptManager->load("Documents.Add.TypeText(\"Hello :)\")", "myscript", "JavaScript");
To copy to clipboard, switch view to plain text mode 
but it does not work. Please help me with errors and if there is - to give a piece of working code.