We need to split a data received from TCP , so we use a tcp delimiter # But if already # included in received data. Data split at # , and so the proper splitting of data is not occur. what is the way to split a data and any need to change a delimiter ? socket->write(QByteArray(1,TASK_DELIMITER)); We collect a data in QList commandList = data.split(TASK_DELIMITER);