You are not logged in.

1

Friday, March 3rd 2017, 6:06pm

Use QProcess with a executable in resource

Hi guys. I´am developing an app with QT creator in linux and i''am with some difficults.
I include an executable which needs arguments in resources projects https://www.youtube.com/watch?v=sWIQIi4lg58 and seems like everything is ok. I tried to check the size of the file with path :/Aux/namefile and it gives the correct size.

QProcess *process = new QProcess(this);
QStringList arguments;
arguments<< "--help";

process->execute(":/Aux/namefile");
//already tried with start and no results too
process->write(arguments);
process->closeWriteChannel();
process->waitForFinished();
QString output = process->readAll();
ui->outputLabel->setText(output);

The problem is .. i'am not getting any output. Any ideas about this ? Thank you in advance

2

Thursday, March 16th 2017, 1:47pm

Hello,

I think you've got to look into signals & slots.

Regards