2019-03-05 01:42 AM
Hello, i had no response to that question
How to go to a view from Model without using modelListenner
to go to a view i call a virtual function from modelListenner DISPLAY_MYVIEW that do a call to presenters, and then to views (that then do application().gotoMyView(); )
I want to display the MyView screen with a call from the model (on an external event; whatever is the screen currently shown)
For that i don't want to call a virtual function from modelListenner: it would mean that have to define in each view and presenter the function DISPLAY_MYVIEW.
Is it possible ?
thanks for any support
best regards
Solved! Go to Solution.
2019-03-05 04:42 AM
Hi @Professional,
Sorry, i've been traveling and haven't had the time to catch up fully yet.
Sending messages to presenters and changing screens (showing a different view) are two different things. You can display any view you want by calling the generated goto methods (by designer) on the Application class.
e.g. from model:
static_cast<FrontendApplication*>(Application::getInstance())->gotoMyScreen();
2019-03-05 04:42 AM
Hi @Professional,
Sorry, i've been traveling and haven't had the time to catch up fully yet.
Sending messages to presenters and changing screens (showing a different view) are two different things. You can display any view you want by calling the generated goto methods (by designer) on the Application class.
e.g. from model:
static_cast<FrontendApplication*>(Application::getInstance())->gotoMyScreen();
2019-03-05 05:00 AM
Thanks a lot for the support
2019-03-06 05:29 AM
You're very welcome!