当前位置:网站首页>Five connection modes of QT signal and slot
Five connection modes of QT signal and slot
2022-07-28 15:32:00 【Flying_】
qt Five connection modes of signal and slot :
1. Default connection : If it is on the same thread, it is equivalent to direct connection , In different threads, it is equivalent to queue connection
2. Direct connection : Where is the signal , On which thread ( It is best to use only in the same thread )
3. Queue connection : Where the slot is, the thread executes ( Slot functions do not execute immediately , The slot function will not be executed until the currently executed function of the receiver is executed )
4. Blocking queue connections : ( The slot function is called at the same time as the queue connection , It's just that the thread of the sender will block , Until the slot function runs , Sender and receiver must not be on the same thread )
5.Qt::UniqueConnect The only connection , A signal can only have one slot connection , Multiple failures can be used | Combined with the above four
1. The thread of an object is the thread when the object is created , Whether the definition of the object is saved in that thread ;
For example thread1 A new thread is opened in thread2, that thread2 Objects are defined in thread1 Medium , namely thread2 The object itself belongs to thread1 Of , And in the thread2 Of run The object defined in the function belongs to thread2 Of
边栏推荐
猜你喜欢

7/13 (pond sampling)

Voltage relay dy-28c

PMP每日一练 | 考试不迷路-7.28(包含敏捷+多选)

Introduction to grpc

流畅到让人头皮发麻的单商户商城,你用过吗?

DataTables warning: table id=campaigntable - cannot reinitialize datatable. solve

Dj-131/60c voltage relay

NFTScan 与 NFTPlay 在 NFT 数据领域达成战略合作

Have you ever used the single merchant mall, which is smooth enough to make people feel numb?
![[jspwiki]jspwiki installation deployment and configuration](/img/3c/81a201bb80dcbb17d1c97b1a5bb215.png)
[jspwiki]jspwiki installation deployment and configuration
随机推荐
堆操作
HJS-DE1/2时间继电器
mysql 8.0常用(持续更新)
Shellcode writing (unfinished)
7/13 (pond sampling)
ERROR:bokeh.core.validation.check:E-1001 (BAD_COLUMN_NAME)
crmeb标准版附带的客服系统
软件测试的流程规范有哪些?具体要怎么做?
crmeb v4.3部署流程
Hjs-de1/2 time relay
Opencv - draw mask images of multiple instances
MIT指出公开预训练模型不能乱用
Principle and configuration of MPLS LDP
MPLS LDP的原理与配置
Grpc frequently asked questions
Easy start, swagger
Collation of MySQL error prone knowledge points (to be updated)
4、主程序和累积中断处理例程实现代码
4.8 HD-GR GNSS导航软件源码
Understand crmeb open source online education knowledge payment system