now I have replaced for loop with this line
strcpy(file_name,qt_file_name.toAscii());
but still the answer is same ,i.e, SEGMENTATION FAULT