Eska
11th June 2012, 16:11
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
#include<QProcess>
...
Qprocess *PFDprocess;
mainwindow.cpp
...
PFDprocess = new QProcess( );
PFDprocess -> start("java -jar /path/to/my/file.jar");
...
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
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
#include<QProcess>
...
Qprocess *PFDprocess;
mainwindow.cpp
...
PFDprocess = new QProcess( );
PFDprocess -> start("java -jar /path/to/my/file.jar");
...
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