开发者

Qt: Is it possible to connect a signal to a signal in Qt designer

I have been reading in the signals &开发者_高级运维amp; slots documentation and it says that you can connect a signal to a signal and trigger the slot thats connected to the second signal in the chain. I cant find a way to do this in Qt designer, it only lets you connect a signal to a slot not a signal to a signal. Also i cant find it in the docs but if have a signal connected to a signal with the first signal carrying QString argument for example will the QString be propagated along the chain.

Thanks!


You can't do this in Qt Designer; you have to do it in code. And yes, you can propagate the QString parameter.


I don't think that's possible in the designer directly (it's not a very common thing to do). But you could do it in your custom code.

The parameters emitted with the original signal will be passed on the to slot after the relay.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜