Oleg
5th April 2012, 13:52
Hello,
I'm trying to figure out how to use QTestLib with custom QApplication. So, I want to test if my command line aruments are handled correctly, for example language is set to the specified one (i.e. --set-lang=de). All the logic is placed in Application::exec().
So, the question is how to run Application::exec() from my test. Then I'd like to create MainWindow and access any label within it to test its text.
Thanks.
I'm trying to figure out how to use QTestLib with custom QApplication. So, I want to test if my command line aruments are handled correctly, for example language is set to the specified one (i.e. --set-lang=de). All the logic is placed in Application::exec().
So, the question is how to run Application::exec() from my test. Then I'd like to create MainWindow and access any label within it to test its text.
Thanks.