no, he wants it in a label
no, he wants it in a label
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
no, he wants it in a labelDepends if this is a console or gui app. I think Lykurg suggested this for a console app. Without more information from OP, it's hard to tell if this is an answer to his question.From the docs : ... QProcess allows you to treat a process as a sequential I/O device. You can write to and read from the process ... You can then write to the process's standard input by calling write(), and read the standard output by calling read(), readLine(), and getChar(). Because it inherits QIODevice, ...
Regards,
Marc
mainwindow is only available to gui app. Of course you can still read the standard/error output and send it to some text widget. But you can't open e.g. MS paint inside a widget.
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
OK, let me be more clear : "The OP didn't specify if the external app he wants to start is a console app or not." If the external app is a console app, the QProcess approach will work.
And on Windows it IS possible to start an external app and make it appear inside another application. This requires some code in the external app though. But the OP is working on MacOS, and I don't know anything about that.
Bookmarks