Hello, i was trying the QProcess class with a simple program, i made an interface to call mogrify program and convert an image. This is the code used to start the process:
Qt Code:
  1. void ConvertDialog::on_convertButton_clicked()
  2. {
  3. QString sourceFile = sourceFileEdit->text();
  4. convertButton->setEnabled(false);
  5. outputTextEdit->clear();
  6.  
  7. QString size = "-resize " + sizeComboBox->currentText().toLower();
  8. args << size << sourceFile;
  9.  
  10. QString commandDebug = "command: ";
  11. int i;
  12. for(i = 0; i < args.size(); i++){
  13. commandDebug += args.at(i);
  14. }
  15. textBrowser->setText(commandDebug);
  16. process.start("mogrify", args);
  17. }
To copy to clipboard, switch view to plain text mode 

when i start it, it shows me this error:
mogrify: unrecognized option `-resize 800x600'.

but this option is available on mogrify. Any ideas?