Qt console application “WARNING: QApplication was not created in the main() thread”
I'm creating a very simple C++ QT console application from an example given here on stack overflow. How to use QFileSystemWatcher to monitor a folder for change The code is exactly as the code in that application and I'm developing with Qt's UI, Qt Creator with MinGW 32bit. I selected the console application from the projects I could choose as I have no need for a graphical user interface. Once the application has finished loading, the application shows the error message "WARNING: QApplication was not created in the main() thread" then does nothing. I have tried debugging the application but