I save data from two vectors to a .csv file in this way (vectors are of type double):
void MainWindow::save_csv() { QString filename = QFileDialog::getSaveFileName(this, tr("Save csv"), ".", tr("csv files (*.csv)")); QFile file(filename); if (file.open(QFile::WriteOnly|QFile::Truncate)) { QTextStream stream(&file); for(int i=0;i<=for_step_x.size();i++)// для звездной величины { stream << for_step_x[i]<<"\t"<<","<<for_step_y[i]<<"\n"; } file.close(); } QMessageBox::information(NULL,"show","Данные успешно сохранены"); } When opening with a Word, the elements of the lines are written as they should be (through a tabulation with a comma). When opened with Excel, all data is written in one column. Tried and without tabulation, having made a separator only ",", the excel also recognizes as one column. How to fix it?
QFile::Textadd. Whether too little ... - alexis031182