Note that signals can also carry any data to the slots they are connected to, even though we don't show examples of that here.
信号也可以将任何数据传送到它们所连接的插槽,尽管在这里我们没有显示这样的示例。
With signals/slots, it is much easier to control communications between objects in a flexible and maintainable manner than it is with a fragile callback style.
使用信号/插槽以灵活且可维护的方式控制对象间通信要比使用脆弱的回调风格容易得多。
This is thanks to Qt's signals and slots mechanism we covered previously.
这要借助于我们前面提过的Qt的信号与槽机制。
Models also notify any attached views about changes to data through the signals and slots mechanism.
同时模型通过信号和槽机制将数据的变动通知附属的视图。
I use slots and signals. What happens when my thread emits signal more frequently than the slot could receive it.
我用的槽和信号。当我的线程发出信号比槽可以获得更频繁。
Signals can propagate arguments to each of the slots they call.
信号可以向它们调用的每个插槽传递参数。
Test automatic connection management of signals and slots.
测试信号和插槽的自动连接管理。
我用的槽和信号。
Signals and slots are used for communication between objects.
信号与槽用于实现对象间的通信。
In that case, you're right to use signals and slots to pass the data to the main thread for rendering.
在这种情况下,你可以使用信号和槽将数据传递给主线程渲染吧。
All classes that inherit from QObject or one of its subclasses (e. g. QWidget) can contain signals and slots.
所有从Qobject或者它的一个子类(比如:QWidget)继承的类都包含信号与插槽。
Signals and slots are loosely coupled: a class which emits a signal neither knows nor CARES which slots receive the signal.
信号与插槽是松耦合的:一个发出信号的类不知道也不关心哪一个插槽接收到这个信号。
Signals and slots are loosely coupled: a class which emits a signal neither knows nor CARES which slots receive the signal.
信号与插槽是松耦合的:一个发出信号的类不知道也不关心哪一个插槽接收到这个信号。
应用推荐