1

What is the best and short way to inplace addTransition on signal with params (c++/c++11):

QCheckBox checkBox;

QStateMachine machine;

QState *s1 = new QState();
QFinalState *s2 = new QFinalState();

s1->addTransition(&checkbox, SIGNAL(stateChanged(int state)), s2); 
fl-web
  • 462
  • 5
  • 16

1 Answers1

0

The answer is that there is nothing more that has to be done : the code that I included in the question worked. State transition is triggered by any signal included the signals with parameters.

IAmInPLS
  • 4,051
  • 4
  • 24
  • 57
fl-web
  • 462
  • 5
  • 16