QTestLib is a way to do unit tests. It's not very useful for testing the whole application. If you want to test a specific dialog, then you write a unit test that creates an instance of the dialog and you call methods of that dialog and see if you get expected results. Testing multiple dialogs with QTestLib doesn't make much sense, as it's not unit testing anymore but rather integration testing or even system testing.