Add test for pqTextEdit

Modify the QTestApp to allow QString to be sent as keyboard events.
Add a unit test for pqTextEdit.

Change-Id: I31c8c4994a8c7e979ae25b84ebb3f4d5e5143e75