Questions tagged [qstatemachine]

QStateMachine is based on the concepts and notation of Statecharts. QStateMachine is part of The State Machine Framework.

A state machine manages a set of states (classes that inherit from QAbstractState) and transitions (descendants of QAbstractTransition) between those states; these states and transitions define a state graph. Once a state graph has been built, the state machine can execute it. QStateMachine's execution algorithm is based on the State Chart XML (SCXML) algorithm. The framework's overview gives several state graphs and the code to build them.

52 questions
0
votes
1 answer

QStateMachine how it works

I've created 4 different QState and i want to hide one object in evry state transition. This is the code: QStateMachine partita; QState *inizio_mano = new QState(); QState *aspetto_G1_primo = new QState(); QState *aspetto_G1_secondo = new…
0
votes
2 answers

QStateMachine - QMouseEvent

In another question you tell me to use QStateMachine. I'm new to Qt and it's the first time i use the objects so I make a lot of logical mistake, so using QStateMachine it's a big problem... It's the only way to do thath ? I try to explain my…
0
votes
1 answer

Qt Client application halt during waiting response from server

Issue : Using While loop to check condition and use timer if doesnt get response from server within specified time. OS: Linux SDK : QT 5.5 Description: I have implemenetd a client side and in code there is while loop which continously checks…
samprat
  • 2,150
  • 8
  • 39
  • 73
0
votes
1 answer

QStateMachine timing (showing a non-blocking dialog via QState entered() signal)

When entering a QState in QStateMachine a few Widget object properties are set with assignProperty() and the entered() Signal is used to run a Slot method that exec()s a QDialog. This principally works, but the dialog is created before the…
handle
  • 5,859
  • 3
  • 54
  • 82
0
votes
1 answer

Can I Add States, Transitions, Properties if a QStateMachine is already started?

I have some problem with states aren't setting properties. Probably the problem is because I add the properties after the machine is started and I'm adding to the current state. But I need to add properties, states and transition when the machine is…
Breezeight
  • 1,855
  • 2
  • 22
  • 27
0
votes
1 answer

QStateMachine error state

I have state machine with three states s1, s2, s3 and s4. From states s1, s2 and s3 machine can enter error state. QStateMachine machine; QState *s1 = new QState(); QState *s2 = new QState(); QState *s3 = new QState(); QFinalState *s4 = new…
zvjerka24
  • 1,772
  • 1
  • 21
  • 27
-1
votes
1 answer

QStatemachine to trigger signal: connected slots not called

I want to code a function to show the basic flow of my GUI like if I call that function in a slot it start transitions in states as FileMenu->Open(signal triggered and enables the slot connected to it) and so on. I tried with state machine…
Tab
  • 785
  • 2
  • 11
  • 27
1 2 3
4