Quote Originally Posted by jacek
Maybe you could use QtTest module? It has some methods for sending key events.
Thanks Jacek, it looks like this might work, I'll definitely try it. Here's the first phrase from the "Simulating GUI Event" chapter:

QTestLib features some mechanisms to test graphical user interfaces. Instead of simulating native window system events, QTestLib sends internal Qt events. That means there are no side-effects on the machine the tests are running on.

If this works, I'll let you know.

Cristian