Hold screen via GUI to console


I had a program (on console) that uses a third-part software to draw some graphs. In order to hold the graphs on the screen, I used cin.get(); and that worked.

Now I created a GUI with Qt. The code remains generally the same. The code continues to call the software to draw graphs (during drawing graphs, there is a console opened automatically). Butcin.get(); in the code cannot hold the graphs on screen anymore. The graphs appear and disappear immediately.

Could anyone help me find a solution to hold the graphs, please? Thanks in advance.
any comment?
Perhaps try std::cin.ignore( std::numeric_limits<std::streamsize>::max(), '\n' ); (and include <limits>)
from http://www.cplusplus.com/forum/beginner/1988/
Thanks for the reply. But that didn't work. This time it's a hard question...
It might be a whole lot simpler to just create a new window and draw into that, instead of using the console subsystem.
Topic archived. No new replies allowed.