cancel
Showing results for 
Search instead for 
Did you mean: 

change screen from Model.cpp

Emilmart
Senior

Hi I'd like to change screen from Model.cpp, regardless the screen I'm currently in.

Is there a solution without implementing a method that changescreen in each screens ?

Thanks !

1 ACCEPTED SOLUTION

Accepted Solutions
qq3g7bad
Associate III

I think it is not recommended way to change screen directly from Model.cpp, because classes generated by touchgfx are based on Model-View-Presenter design pattern. It will take a little more steps, but I think it is safer way using ModelListener.

View solution in original post

1 REPLY 1
qq3g7bad
Associate III

I think it is not recommended way to change screen directly from Model.cpp, because classes generated by touchgfx are based on Model-View-Presenter design pattern. It will take a little more steps, but I think it is safer way using ModelListener.