qhttpengine
qhttpengine copied to clipboard
QObject: Cannot create children for a parent that is in a different thread.
When running this example https://raw.githubusercontent.com/nitroshare/qhttpengine/master/examples/fileserver/main.cpp on Windows 7 (32-bit) with Qt 5.9.6 and Windows 10 (64-bit) with Qt 5.9.6, I got the following error:
QObject: Cannot create children for a parent that is in a different thread.
(Parent is QHttpEngine::Server(0x18e035f848), parent's thread is QThread(0x1f1a2bca6a0), current thread is QThread(0x1f1a2bdac80)
But it worked on macOS.
It seems like new objects are created inside handling methods of the library.