Display Text from Console in GUI
-
I am trying to create a gui for a webparser I wrote. The parser prints some information to the cli, but I'd like to display it in the gui. Would something like that be possible?
the output in the cli looks something like this:Title of media creator sigil
How would I do that? I have not really used Qt before, a friend told me to try it, and now here I am.
I am using Qt6 and Python 3.10.6
Any answer is appreciated, thanks in advance
-
I am trying to create a gui for a webparser I wrote. The parser prints some information to the cli, but I'd like to display it in the gui. Would something like that be possible?
the output in the cli looks something like this:Title of media creator sigil
How would I do that? I have not really used Qt before, a friend told me to try it, and now here I am.
I am using Qt6 and Python 3.10.6
Any answer is appreciated, thanks in advance
@WorldTeacher
If you want to run and grab the output from an external program from Qt you will need to useQProcess
.
If you have the code (perhaps with a tiny rewrite) ready to be included into your current Qt app directly without needing to run it externally that might be preferable/more controllable. -
@WorldTeacher
If you want to run and grab the output from an external program from Qt you will need to useQProcess
.
If you have the code (perhaps with a tiny rewrite) ready to be included into your current Qt app directly without needing to run it externally that might be preferable/more controllable.@JonB thanks for the reply, I'll give it a go in a bit.
Currently, the code is in a seperate file, but once the gui is complete, I might add it into the Qt app, as it would probably make it easier -
@JonB thanks for the reply, I'll give it a go in a bit.
Currently, the code is in a seperate file, but once the gui is complete, I might add it into the Qt app, as it would probably make it easier@WorldTeacher Pls mark this topic as solved