Running a Perl module in Qt
-
I've used QProcess to access external applications on my linux box multiple times without flaw. I also had issues like you are having right now being that I could run the application on the command line with no errors, and then I tried using QProcess and had issues all around.
My solution was following the exact example on the QProcess page using the argument string lists, checking for errors, and all that jazz.
For example (right from the QProcess documentation)
@
QObject *parent;
...
QString program = "./path/to/Qt/examples/widgets/analogclock";
QStringList arguments;
arguments << "-style" << "motif";QProcess *myProcess = new QProcess(parent);
myProcess->start(program, arguments);
@Just a thought though. Here's the docs if you haven't already been there. http://developer.qt.nokia.com/doc/qt-4.8/qprocess.html
I think when I was having issues, the QProcess line recognized some characters differently then what the command line does. So an argument string list was absolutely required for my case. Also, put ' ' around your arguments as well.
Best of luck.