I am just starting up a new project that needs some cross-platform GUI, and we have chosen Qt as the GUI-framework.
We need a unit-testing framework, too. Until about a year ago we used an in-house developed unit-testing framework for C++-projects, but we are now transitioning to using Google Test for new projects.
Anyone have any expe...
Hi,
I am simulating F1 key using QTest::keyPress() method to test keypress event, on simulation of F1 key when i check for nativeScanCode, it returns 0 value. can any one help?
//Code snippet
//To simulate F1 key press
QTest::keyPress(&kboard, Qt::Key_F1);
//To check keypress Event
void keyboard::keyPressEvent(QKeyEvent* ke) {
if ( ke...
I am developing a GUI application in Qt Creator and want to write some unit tests for it.
I followed This guide to make some unit tests with QtTestlib and the program compiles fine.
But how do I run them? I would like them to be run before the GUI app starts if debug buid and not run if release build.
...