Hi,
I want to create an application that will open a terminal. The terminal should be the main window of the application.
I'd use custom classes, and show member values, and function results in the terminal.

The problem is that when I run the application (code below), it keeps opening terminals (one each second) until I close it.
It wouldn't open just one instance of a terminal. I know that app.exec() creates a loop, but I've seen posts all over the Internet
where people do open external programs using QProcess in the same manner.

textdrive.pro
Qt Code:
  1. TARGET = textDrive
  2. TEMPLATE = app
  3. SOURCES = main.cpp
  4. QT -= gui
To copy to clipboard, switch view to plain text mode 

main.cpp
Qt Code:
  1. #include <QCoreApplication>
  2. #include <QProcess>
  3. #include <QStringList>
  4. #include <QDebug>
  5.  
  6. int main (int argc, char *argv[])
  7. {
  8.  
  9. QCoreApplication app(argc, argv);
  10.  
  11. QProcess *proc = new QProcess(&app);
  12. proc->start("konsole", QStringList() << "--hide-menubar" << "-e" << "/home/dejan/projects/linux/txtdrive/textDrive");
  13. qDebug() << "Console application running!";
  14.  
  15. return app.exec();
  16.  
  17. }
To copy to clipboard, switch view to plain text mode 

I'm running it on Arch Linux.

Thank you for your help,
Dejan