Skip to content

请教一个QThread中work-object时候的一个问题 #2

@SunRain

Description

@SunRain

在使用work-object模式的时候,假设WorkerThread 已经run了,这个时候新new一个worker,然后使用worker->moveToThread(&workerThread);会发生什么情况,此时是否可以直接调用worker->doWork()?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions