Qt (toolkit)
Posts  1 - 1  of  1
ajaybindalin
Getting undefined reference to `QTest::qVerify error while using MotelTest in Qt..

Complete details:

I have created a simple project and trying to use modeltest concept in it.

How I have done it......

1. My main project file is suppose in myproj folder.
2. Created one more folder in parallel to it with named modeltest and has put modeltest.h. modeltest.cpp and modeltest.pri files in it.

Since I was not able to find out modeltest.pri file anywhere, I myself has created it as:

HEADERS+= modeltest.h
SOURCES+=modeltest.cpp

3. Both the folders are under a main folder temp.
4. Opened the folder myproj.
5. Run qmake on it.
6. Added include(../modeltest/modeltest.pri) in my myproj.pro file.
7.qmake
8.make

Now getting error as:

modeltest.o: In function `ModelTest::index()':
modeltest.cpp:(.text+0x94): undefined reference to `QTest::qVerify(bool, char const*, char const*, char const*, int)'


Please help.
Save
Cancel
Reply
 
x
OK