I have deleted the old code contents of the posted function and added
To the function where the ls process is created:
connect( ls, SIGNAL(readyRead()),
this, SLOT(storedata()) );
connect( ls, SIGNAL(readyRead()),
this, SLOT(storedata()) );
To copy to clipboard, switch view to plain text mode
and
void MainWindow::storedata(){
while(ls->canReadLine()){
qDebug() << ls->readLine();
}
}
void MainWindow::storedata(){
while(ls->canReadLine()){
qDebug() << ls->readLine();
}
}
To copy to clipboard, switch view to plain text mode
However it still crashes after about 400 lines.
Bookmarks