Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QObject: Cannot create children for a parent that is in a different thread. #29

Open
jiakuan opened this issue Mar 19, 2019 · 1 comment

Comments

@jiakuan
Copy link

jiakuan commented Mar 19, 2019

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.

@DLMartin-
Copy link

@jiakuan I am experiencing this issue myself, did you ever find a fix?
I'm on Windows 10 with Qt5.6.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants