当前位置:网站首页>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
边栏推荐
- What are the functions to be added in crmeb pro2.2?
- Leetcode - number of operations, non repeating numbers, diagonal traversal, Joseph Ring
- crmeb v4.3部署流程
- JOGY-61电压继电器
- For loop
- 听说crmeb多商户增加了种草功能?
- Opencv - draw mask images of multiple instances
- 【LeetCode】35、搜索插入位置
- Execution process of SQL statement
- Have you ever used the single merchant mall, which is smooth enough to make people feel numb?
猜你喜欢
随机推荐
Dj-131/60c voltage relay
Customer service system attached to crmeb Standard Edition
Jds-12 time relay
Chrome plug-in debugging
What functions will be added to crmeb Standard Version 4.4
Principle and configuration of MPLS LDP
Understand crmeb open source online education knowledge payment system
1、开源GPS项目HD-GR GNSS的著作者
【LeetCode】35、搜索插入位置
游戏测试的概念是什么?测试方法和流程有哪些?
crmeb 标准版window+phpstudy8安装教程(二)
[touch] count the number of engineering documents, code lines, and line comment coverage
[MP error] MP: 'getbasemappe serviceimpl' claims
Deepfacelab model parameters collection
An idea of modifying vertex height with shader vertex shader
Here comes the full open source free customer service system
Opencv - cut out mask foreground area from grayscale image
How to set some app application icons on the iPhone Apple phone that you don't want others to see? How to hide the app application settings on the mobile desktop so that they can be used normally afte
JY-7GA/1电压继电器
crmeb v4.3部署流程









