Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // My s1 state never seems to transition when I signal the correct signal. However I do see the signal being posted
- NiesDriver::NiesDriver(QObject * parent) : QObject(parent)
- {
- QStateMachine machine;
- QState *s1 = new QState();
- QState *s2 = new QState();
- QSignalTransition *t1 =
- s1->addTransition(this,SIGNAL(pinChange()),s2);
- machine.addState(s1);
- machine.addState(s2);
- machine.setInitialState(s1);
- machine.start();
- connect(s2,SIGNAL(entered()),this,SLOT(onMyStateEntered())); // this is never called I assume entered() is never signaled??
- //connect(this,SIGNAL(testSignal()),this,SLOT(onMyStateEntered())); // this one works proving it is emitting testSignal
- cardCounter(10); // this emits testSignal
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement