Is it possible to create/write a .doc file using Qt Programming?

For example, I read some text from an xml file then write it to a file and save it as a .doc file. will this work fine or not? I would also like to insert images in file.