Running a console application within an GUI application
-
Hello,
I have an application which runs through a console, from here I'm making a GUI application that will allow a user to interact with the console application. How would I take the console application and run it on the GUI.
Sample Image of GUI: https://drive.google.com/file/d/0B_XbLbbwxR4RQnFKcmY0U2RWeHc/view?usp=sharing
The console app is written using C++/SFML
Any help is appreciated as I'm quite new to Qt, thanks
-
@pauliedunne
You can't directly "run it on the GUI", but you could start it from Qt, and read its output, respectively send it messages. You could use QProcess to do just that.Kind regards.
-
Hello,
If I'm using Qt's Widget Application, what would I place on my canvas to hold SFML or Qt Graphics code and display it in that frame (Don't know if Frame will do the job)
Meaning, some way to display new code on the same application, and the new code will be the console application, just written for the GUI.
Thanks
-
@pauliedunne
I don't know how SFML operates, so I pass there, as for Qt any text widget could be used to show the text from your console program. QTextEdit is probably your best bet. -
What about displaying the Qt Graphical Library on a Qt Widget Application?
-
I don't understand what you mean, Qt is a GUI library by design.