Check current state of QHistoryState
Unsolved
General and Desktop
-
-
You can use https://doc.qt.io/qt-6/qabstractstate.html#machine to get the state machine from QHistoryState
-
I have already access to this statemachine and statemachine->configuration() gives me the state after i left the substate/historystate. I want to know if a historystate was entered or in which previous state it was.
Lets say i have two different historystates in my statemachine and i have a stop/resume logic.
"stop" jumps out of active substate/historystate and "resume" continues the last active historystate.The moment when i trigger "resume" i want to know which historystate was the last active one.
I could save that information as member variable but i was hoping that QHistoryState delivers enough information.