Hi everybody !

I am actually trying to create a GUI using QTCreator on MacOSX. A part of the work I want to do in this UI has already been done in Java, and I detain the executable .jar which launch this application in a new window.

I would like to simply insert the window launched through the .jar in a sub-window of my QT mainwindow (for instance in a specific Qframe).

My code is actually as this :

mainwindow.h
Qt Code:
  1. #include<QProcess>
  2.  
  3. ...
  4.  
  5. Qprocess *PFDprocess;
To copy to clipboard, switch view to plain text mode 

mainwindow.cpp
Qt Code:
  1. ...
  2. PFDprocess = new QProcess( );
  3. PFDprocess -> start("java -jar /path/to/my/file.jar");
  4. ...
To copy to clipboard, switch view to plain text mode 

The problem is that the .jar executes in a new window, even if I specify a "parent object" in the constructor of QProcess(---).

Is there a way to specify that every output generated by the QProcess execution can be displayed in a specific area (in the mainwindow), and not in a new window ?

I use QTCreator with QT 4.8.1.

Thank you very much

Eska