Guest User

Untitled

a guest
Apr 16th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. QStateMachine machine;
  2. QState *s1 = new QState();
  3. QState *s2 = new QState();
  4. QState *s3 = new QState();
  5.  
  6. s1->addTransition(button, SIGNAL(OnEntry()), s2);
  7. s2->addTransition(button, SIGNAL(OnEntry()), s3);
  8. s3->addTransition(button, SIGNAL(OnEntry()), s1);
Advertisement
Add Comment
Please, Sign In to add comment