I've got a header file with the following include:
#include <QtTest/QtTest>
I am trying to use the following line to generate a non-blocking wait in my main window:
QTest::qWait(1000 - ui->speedDial->value());
I receive the following error:
mainwindow.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl QTest::qSleep(int)" (__imp_?qSleep@QTest@@YAXH@Z) referenced in function "void __cdecl QTest::qWait(int)" (?qWait@QTest@@YAXH@Z)
Can anyone help me understand what I am doing wrong, or provide an alternative method? These lines are independent of other code.
It works fine for me. Check this example which is a modified version of the Qt Test official documentation example:
tutorial1.pro:
testqstring.cpp: