PDA

View Full Version : qExec not taking command line argument -maxwarnings 0



kandan
4th July 2017, 07:34
Hi,
I use QTest::qExec(&test, argc, argv); to execute my qtest.

Unfortunately qDebug() output stops after 2000 (which is default) warnings.

I am unable to use the extra command line argument "-maxwarnings 0" for unlimited warnings.
qExec doesnt accept the extra argument.

http://doc.qt.io/qt-5/qtest.html#qExec

says I can use command line arguments like "maxwarnings 0".

Thanks for your time,
kandan

jefftee
5th July 2017, 01:29
Show exactly what you are coding for the QTest::qExec function please. Are you setting argc and argv correctly to indicate the correct number of arguments?