If you're targetting Windows only then using SendMessage (or PostMessage) is the best way. Qt won't help you with that - it has no facilities to send keystroke events to other processes. You'll have to go through the native API (and native structures, of course - you can't send Qt events using SendMessage).
Bookmarks