注:此文是从我的QQ空间里移出来的,因为觉的用那么多空间,blog了太累了,它发表于 2010年05月11日 23:22
-----------------------------------------------------------------------------------------------------------------------------------------------------
学Qt也有一段时间了,,,可是对它的connection 函数却不是很了解,也没有考虑一些问题...
比如,信号调用槽问题,是同步的,还是异步的:
connect是4个参数吗??其实不是,它有5个参数,前4个都很熟悉,第五个参数是一个enum Qt::Connection Type类型的,它一共有六个值,下面是Qt Assistant中给出的明确说明,,
This enum describes the types of connection that can be used between signals and slots. In particular, it determines whether a particular signal is delivered to a slot immediately or queued for delivery at a later time.
Constant | Value</ |
---|