2021-07-19 04:13 AM
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 !
Solved! Go to Solution.
2021-07-24 05:35 PM
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.
2021-07-24 05:35 PM
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.