'Restore main console on STM32mp1 after Qt Application exit?

So I have a Qt application running on an STM32mp1XXX board (clone board but I'm pretty sure a genuine one has the same behavior). We want to put in a hook to exit to the main console and see a linux prompt. Okay...got that secret hook in place to exit the application. So here's the issue:

When the Qt application exits, the last screen shown in the Qt application in still on the screen, albeit the application has exited. I can't seem to find anything on how to restore the console back to text mode. It's like Qt's underlying graphics are not fully shut down?

Any advice?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source