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 :

Qt Code:
  1. args << "-ovc";
  2. args << "help";
  3. commandProcess.start("mencoder", args);
To copy to clipboard, switch view to plain text mode 

It works fine. Now what I don't understand is how to make this work :

Qt Code:
  1. args << ui->lineEditInput->text();
  2. commandProcess.start("mplayer", args);
To copy to clipboard, switch view to plain text mode 

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 ?