PDA

View Full Version : Connect QStateMachine child and parent classes



maratk1n
2nd November 2017, 18:44
Hello!
The base class has a protected state machine. Is it possible to somehow link this machine to an machine of the current class?
For example:

startTest->addTransition(FillingGas::machine, SIGNAL(finished()), alignment);

d_stranz
3rd November 2017, 00:02
If the "current class" is derived from the "base class", then the "current class" has access to public and protected (but not private) members of the base class. Your single line of pretty abstract code doesn't do much to explain the problem you are having (if you're having any problem at all).