If you want input and output from konsole.
You CAN use cin and cout.
Here is is best to use
another sloppy way is to use the system("") command and direct to output with ">" to a file and than read the file into your program
But I definitely recommend using QProcess
in terminal go
and than go to QProcess