if(QFile::exists("coded.txt")) {
s2 << "-steg" << "coded.txt" << "-q" << ui.compressionspinBox->text() << "cleanimage.ppm" << ui.jpeglineEdit ->text() ;
_proc
->setReadChannelMode
( QProcess::MergedChannels );
connect( _proc, SIGNAL( readyReadStandardOutput() ), this, SLOT( read()));
connect( _proc,
SIGNAL( started
() ),
QApplication::instance(),
SLOT( aboutQt
() ) );
_proc->start(("cjpeg"),s2);
if(QFile::exists("coded.txt"))
{
QStringList s2;
s2 << "-steg" << "coded.txt" << "-q" << ui.compressionspinBox->text() << "cleanimage.ppm" << ui.jpeglineEdit ->text() ;
QProcess *_proc;
_proc = new QProcess( this );
_proc->setReadChannelMode( QProcess::MergedChannels );
connect( _proc, SIGNAL( readyReadStandardOutput() ), this, SLOT( read()));
connect( _proc, SIGNAL( started() ), QApplication::instance(), SLOT( aboutQt() ) );
connect( _proc, SIGNAL( finished(int, QProcess::ExitStatus) ), QCoreApplication::instance(), SLOT( quit() ) );
_proc->start(("cjpeg"),s2);
To copy to clipboard, switch view to plain text mode
Where all do I have to make the changes .I mean in pro file, header file
Bookmarks