Ok, found where the issue is.
I forgot to set the data model; in QML example:
So, in C++, I added the 2 lines for the data model:Mediaplayer {
MediaPlayerDataModel {
id: model
}
stateMachine: MediaPlayerStateMachine {
onDataModelChanged: start()
dataModel: model
}
}
QScxmlStateMachine* machine = new MediaPlayerStateMachine() ;
TheDataModel* dataModel = new TheDataModel();
machine->setDataModel(dataModel);
machine->start();
Hope it helps some of you.
Have great vacation everyone.




Reply With Quote

Bookmarks