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

I read in the documentation on signals and slots, and he says that you can connect a signal to a signal and run a slot connected to the second signal in the chain. I can’t find a way to do this in the Qt design, it only allows you to connect the signal to the slot, not the signal to the signal. Also, I cannot find it in the documents, but if there is a signal connected to the signal with the first signal carrying the QString argument, for example, QString will propagate along the chain.

Thanks!

+6
source share
2 answers

You cannot do this in Qt Designer; you have to do this in code. And yes, you can distribute the QString parameter.

+4
source

I do not think that this is possible directly in the designer (this is not a very common thing). But you can do it in your custom code.

Parameters emitted by the original signal will be transmitted through the slot after the relay.

+1
source

Source: https://habr.com/ru/post/889977/


All Articles