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) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -