[Qt-interest] Using QTestLib with qt-eclipse
Martin Tilsted
mt at mt3.dk
Mon Jul 27 00:13:11 CEST 2009
Is it possible to use QTestLib(testlib) with the qt-eclipse plugin?
As far as I can see there are 2 possible solutions:
a: Create the tests within my current qt project in eclipse. This does
not seem to work because I can't get qt to compile my test case, unless
I add it to the main project, and in that case it complain about having
2 main methods because the test framework generate/contain it's own main.
b: Create an other new qt project, put the test in this project and let
it referrer my real project, but I can't seem to make this work. There
is also the problem that the gui system don't know the testlib(Maybe a
hint that it's not supported??) and the gui seems to be confused if I
edit the project file by hand.
So is it possible, and how should I set it up?
I am using Qt Eclipse Integration for C++(The normal qt-eclipse plugin)
together with Eclipse 3.5/cdt 6.0/qt 4.5.2
Martin T
More information about the Qt-interest-old
mailing list