Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt Unit testing Error Please Help!!
Amogh last edited by
I was trying to execute the sample unit test for Gui Element !
class Sample_Unit_Testing : public QObject
this is my code, When i run this code i get an error which says
QFATAL : Sample_Unit_Testing::tst_Gui() QWidget: Must construct a QApplication before a QWidget
FAIL! : Sample_Unit_Testing::tst_Gui() Received a fatal error.
Can anybody explain it me about the error and help??
do you use QTEST_MAIN? If not, please show your main function resp. use