{
cmd_name="7z.exe";
cmd_line.clear();
cmd_line.append("e");
cmd_line.append("-ir!"+filename+"q.htm");
cmd_line.append("-o./data/tmp/");
cmd_line.append("./data/qsource.db");
cmd_line.append("-y");
//mProcess.execute(cmd_name,cmd_line);
mProcess.startDetached(cmd_name,cmd_line);
};
void load_test::un7z_htmlfiles(QString filename, QString filepath)
{
QProcess mProcess;
QString cmd_name;
QStringList cmd_line;
cmd_name="7z.exe";
cmd_line.clear();
cmd_line.append("e");
cmd_line.append("-ir!"+filename+"q.htm");
cmd_line.append("-o./data/tmp/");
cmd_line.append("./data/qsource.db");
cmd_line.append("-y");
cmd_line.replaceInStrings(QString("/"),QString("\\"));
//mProcess.execute(cmd_name,cmd_line);
mProcess.startDetached(cmd_name,cmd_line);
};
To copy to clipboard, switch view to plain text mode
when i use the QProcess to call the 7za.exe to extract the compressed files.It acts very slowly.Only after the 7za.exe finished the job.The ui became normal.
Bookmarks