Qt widgets not show up when Qt shared lib loaded
Requirements: Qt widgets show up when Qt shared lib loads , for none-Qt application. After some web searching, I found: All Qt widgets must live in "main thread", the "main thread" is the first Qt object created thread. so, create a none-Qt thread (std::thread), then, create QApplication and some other widgets in that thread should work, but not. Do not create any Qt related object or call any Qt related static methods before QApplication created, in that none-Qt thread. The thread solution is not portable for Mac OS, my target platform is Windows only, so, it does not matter. In my case, if