You're going to have to look at the API for interacting with Word. Qt won't be able to help you with this.