connect函数的第5参数Qt::ConnectionType

emit函数之后的内容的执行顺序与信号与槽的连接方式有关。如果需要立即执行emit之后的函数,就需要设置为Qt::QueuedConnection,如果要立即执行槽函数,就需要设置为Qt::DirectConnection。

https://blog.csdn.net/itas109/article/details/84592695

posted @ 2019-08-26 16:57  Truman001  阅读(467)  评论(0编辑  收藏  举报