The warning is quite clear, I think.
You do create the QApplication object in a thread that is not the main thread of the application. (I don't know if that will cause trouble. But probably it will, otherwise the Trolls would not have put that warning in, I guess.)

Any reason in particular why you want to put the gui not in the main thread?