Quote Originally Posted by migel View Post
Qt Code:
  1. test.h:15: error: multiple definition of `main'
To copy to clipboard, switch view to plain text mode 
When building unit tests, QtTest provides its own main function so you should not build the main function of your actual application.

Qt Code:
  1. test_conf {
  2. # test specific files and options here
  3. SOURCEs += test.cpp
  4. ...
  5. } else {
  6. # app specific files and options here
  7. SOURCEs += main.cpp
  8. ...
  9. }
  10.  
  11. # common stuff here
To copy to clipboard, switch view to plain text mode