mikemakus
3rd December 2009, 17:12
Hi,
I'm totally new to Qt, and I'm trying to create a simple frontend for the "mencoder" video encoder using Qt Creator.
So, I use commandProcess to call "mencoder" and pass some parameters :
QStringList args;
args << "-ovc";
args << "help";
commandProcess.start("mencoder", args);
It works fine. Now what I don't understand is how to make this work :
QStringList args;
args << ui->lineEditInput->text();
commandProcess.start("mplayer", args);
As you can see in the code, I want that a user typed string of parameters entered into a lineEdit will be passed as args for commandProcess.
Any leads ?
I'm totally new to Qt, and I'm trying to create a simple frontend for the "mencoder" video encoder using Qt Creator.
So, I use commandProcess to call "mencoder" and pass some parameters :
QStringList args;
args << "-ovc";
args << "help";
commandProcess.start("mencoder", args);
It works fine. Now what I don't understand is how to make this work :
QStringList args;
args << ui->lineEditInput->text();
commandProcess.start("mplayer", args);
As you can see in the code, I want that a user typed string of parameters entered into a lineEdit will be passed as args for commandProcess.
Any leads ?