QPrinter *printer = new QPrinter(QPrinter::HighResolution);
QProcess *process = new QProcess();process->setProcessChannelMode(QProcess::MergedChannels);connect(process,SIGNAL(finished(int,QProcess::ExitStatus)),this,SLOT(onProcessFinished(int,QProcess::ExitStatus)));connect(process,SIGNAL(readyReadStandardOutput()),this,SLOT(onRead()));process->start(appDir + "/PDFPrinter", QStringList() << defProfile);runnedProcesses.insert(defProfile,process);