Recently in the development of QT program, the program in debug run is no problem, after release to release version, there are various problems:
To report a variety of inexplicable errors, similar errors are:
QEventLoop:Cannot be used without QApplication
QObject::connect:Cannot connect (null)::aboutToQuit() to
QNativeWifiEngine::closeHandle()
QObject::connect:Cannot connect (null)::aboutToQuit() to QNativeWifiEngine::closeHandle()
QObject:Cannot create children for a parent that is in a different thread.
(Parent is QApplication(0x31f99c), parent‘s thread is QThread(0x57c058), current thread is QThread(0x598b40)
such as These abnormal information look very annoying, also do not know, I even a simple code will be error
newQNetworkAccessManager()
will errorQobject::connect:cannot Connect (NULL):: Abouttoquit () to Qnativewifiengine::closehandle () Baidu everywhere, Google there is no solution, there are a few people encounter similar problems, but there is no solution. An occasional chance, I found the problem:
is the library link is wrong, I wrote Qt5Network.lib
It's Qt5Networkd.lib . When you change back, everything is fine. It is a big hole, the hole dug by oneself, still have to fill in. In order to remember this painful lesson, write down this article deliberately, but also to those who meet the same problem a solution.
From for notes (Wiz)
QT Program Release releases the ultimate solution similar to qeventloop:cannot be used without qapplication problem