Skip to content

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

Description

@jiakuan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions