learning all thing about signals and slots
Hi
I want to know and learn all thing about signals ans slots and connecting of them. are there any references that explain completely. Thanks for any help.
Re: learning all thing about signals and slots
Re: learning all thing about signals and slots
Quote:
Originally Posted by
Qiieha
Qiieha, thanks but in this Doc., for example there is no explanation about connecting a signal to another signal that we could connect a signal to another signal. are there other references that have more examples and complete explanation?
Re: learning all thing about signals and slots
You cannot connect a signal to another signal.. you can may be check QSignalMapper documentation..
Re: learning all thing about signals and slots
Quote:
Originally Posted by
Vikram.Saralaya
You cannot connect a signal to another signal.. you can may be check QSignalMapper documentation..
We could. for example:
Code:
connect(lineEdit,
SIGNAL(textChanged
(const QString &)),
this,
SIGNAL(updateRecord
(const QString &)));
Re: learning all thing about signals and slots
Quote:
Originally Posted by
Vikram.Saralaya
You cannot connect a signal to another signal.. you can may be check QSignalMapper documentation..
Yes you can. This causes the second signal to be emitted whenever the first one is, and is in fact quite useful to simulate "exporting" a signal from a private object.
Re: learning all thing about signals and slots
@yeye_olive I never encountered a case for that! Thanks for that info.. might be useful someday :)
@Alex22 my bad sorry!