Qt signaling across threads, one is GUI thread?

后端 未结 5 879
滥情空心
滥情空心 2020-12-02 14:21

What does it mean to move a object from one thread to another in Qt using moveToThread? Everything seems to work even before using moveToThread, which moves the object from

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-02 15:13

    some objects only can be used on the owner thread. for example if you create and socket object in one thread and you want to send and recv data in another thread it is'nt possible. therefore one solution is to move your object from one thread to other and operate on it.

提交回复
热议问题