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.

  1. rewrite custom version of qsignalmapper takes appropriate function arguments , forwards them.
  2. connect check box signal directly slot want , check return value of sender() in slot see check box emitted signal.

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

xcode - Swift Playground - Files are not readable -

jboss7.x - JBoss AS 7.3 vs 7.4 and differences -