I use a shortcut for interacting with a widget in my QTest::keyClick() function and the test fails. What can be wrong?

The problem is likely to be that you have not called show() [doc.qt.nokia.com] on your widget. If the widget is not visible, the shortcut does not actually behave correctly. You wouldn’t typically have a shortcut that works for a non visible widget, so you should show your widget to get this test to pass.

No comments

Write a comment

Sorry, you must be logged in to post a comment.