Important: Please read the Qt Code of Conduct -

QTestlib and user command line arguments

  • Hi -

    I'd like to pass in my own command line arguments to a Qt project that is based on the QTestlib. When I pass my own argument on the command line (say something like "-t1"), QTestlib seems to intercept it and prints out the help message.

    Is what I want to do possible?

  • You have to write a custom main function and parse the arguments before you pass them to the exec function.

Log in to reply