The error is in here:
	
	- while(!tFile->atEnd()) 
-             { 
-   
-                 line = tFile->readLine(); 
-   
-                 lineWithoutSlashAnne_02 = lineWithoutSlashAnne_01[i]; ///<- i is an iterator for queueList and not for the stringlist. 
- /// And therfor as the error says: i is out of lineWithoutSlashAnne_01 range. 
-                 if (- lineWithoutSlashAnne_02. contains(QRegExp("^projects")))
 
-                 { 
-                     lineWithoutSlashAnne_02.append(" "+projNm); 
- //  come a line back remove the project line and add this line 
-                     qDebug() << "project " << lineWithoutSlashAnne_02; 
-   
-                 } 
-                 out << lineWithoutSlashAnne_02 << endl; 
-             } 
        while(!tFile->atEnd())
            {
                line = tFile->readLine();
                QStringList lineWithoutSlashAnne_01 = QString(line).split("\n");
                lineWithoutSlashAnne_02 = lineWithoutSlashAnne_01[i]; ///<- i is an iterator for queueList and not for the stringlist.
/// And therfor as the error says: i is out of lineWithoutSlashAnne_01 range.
                if (lineWithoutSlashAnne_02.contains(QRegExp("^projects")))
                {
                    lineWithoutSlashAnne_02.append(" "+projNm);
//  come a line back remove the project line and add this line
                    qDebug() << "project " << lineWithoutSlashAnne_02;
                }
                out << lineWithoutSlashAnne_02 << endl;
            }
To copy to clipboard, switch view to plain text mode 
  
And I don't know what you are doing...
				
			
Bookmarks