Results 1 to 2 of 2

Thread: qExec not taking command line argument -maxwarnings 0

  1. #1
    Join Date
    Jul 2017
    Posts
    1
    Qt products
    Qt5
    Platforms
    Windows

    Default qExec not taking command line argument -maxwarnings 0

    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

  2. #2
    Join Date
    Dec 2009
    Location
    New Orleans, Louisiana
    Posts
    791
    Thanks
    13
    Thanked 153 Times in 150 Posts
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: qExec not taking command line argument -maxwarnings 0

    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?
    I write the best type of code possible, code that I want to write, not code that someone tells me to write!

Similar Threads

  1. Execute window command line-by-line using QProcess
    By nhocjerry in forum Qt Programming
    Replies: 5
    Last Post: 30th July 2013, 12:21
  2. Replies: 7
    Last Post: 27th March 2013, 03:40
  3. How i Get Path From Command Line Argument
    By METEOR7 in forum Qt Programming
    Replies: 4
    Last Post: 17th November 2011, 18:12
  4. QString argument ignoring new line characters
    By qtnewbi3 in forum Qt Programming
    Replies: 4
    Last Post: 15th August 2011, 22:18
  5. QProcess and the command line
    By auba in forum Qt Programming
    Replies: 17
    Last Post: 27th May 2009, 10:39

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.