Home > Mobile >  Is there can simulate open multiple terminals, used to run multiple programs and can continue to typ
Is there can simulate open multiple terminals, used to run multiple programs and can continue to typ

Time:02-27

I have to do is in a QT applications (ubuntu), simulated operation, open a command line terminal execute the command, the "terminal" is to hang has been run in the background, because of the follow-up will continue to enter commands in the terminal, I input "python" in the end, for example, and then enter a different python program instructions, I have to do is in QT applications for this operation, and is open multiple terminals at the same time, to perform different commands, if just follow one-off orders, most online are said to use the system () to go, I need the main problem is the command line terminal has been hung in the background, the follow-up to enter other commands, it's don't know how to do, at the great god give advice or comments

CodePudding user response:

Threads with QProcess? QProcess can perform the command line, thread can hang the background will not block the main thread

CodePudding user response:

I go to study first, thanks for
  •  Tags:  
  • Qt
  • Related