Solved 'mouseClick' : is not a member of 'QTest'
-
I Visual Studio 2013, I am getting "'mouseClick' : is not a member of 'QTest'", even though I have checked "Test" in "QT Modules" in the QT Project Settings for the project, and #included <QTest> in the sourcecode.
Funny thing is, it does recognize the QTest namespace and some of the methods like f.ex. "addColumn". But none of the mouse... or key... methods, so it's almost like only part of the namespace has been included.
Is there anything else I need to include or set up to be able to use the rest of the methods (specifically, I need QTest::mouseClick)?
BR. Kenneth.
-
Hi
Please check if you did this ?
http://myprogrammingnotes.com/simulate-mouse-click-using-qt-test-lib.html -
@mrjj Thanks you. That worked.
I ultimately ended up adding the following to Preprocessor definitions in Visual Studio. That way, I can just include <QTest>QT_TESTLIB_LIB
QT_WIDGETS_LIB
QT_GUI_LIB -
super.
If possible please mark as solved :) -
@mrjj I think I did that.
-
@kjoo
Yes its green and nice :)