@Geeva
The easies way is to move your task into its own function that expects q QList<QString> as an argument:
void myClass::myFunction(QList<QString> startvalue){
//do stuff eg:
qDebug() << "Value Received from server :" << startvalue;
QStringList first = startvalue.split("|");
int firstSize = first.size();
qDebug() << "size :" << firstSize;
if(firstSize == 5){
first1 = first[2];
first2 = first[3];
}..........(continue)
}
then you call that function for each and every item in your QList<QList<QString>>
QList<QList<QString> > myList
for(QList<QString> ls : myList){
myFunction(ls);
}