c++ - Can QSignalMapper forward function arguments? -
how use qsignalmapper map multiple check box? signal check box use statechanged(int flag). during process want keep int flag , send custom slot other mapped variables.
how achieve this? using qt4.
you cannot directly forward function arguments qsignalmapper. there 2 ways work around this.
- rewrite custom version of
qsignalmappertakes appropriate function arguments , forwards them. - connect check box signal directly slot want , check return value of
sender()in slot see check box emitted signal.
Comments
Post a Comment