Hello. I did not find the answer in Google, I decided to ask here. Tell me where the error crept in.
QFile file; QString f = "/mnt/tmpfs/"; f += n; f += ".txt"; // проверяем наличие файла на месте if (QFile::exists(f) == false) // проверка на существование { file.setName(f); // создали файл if (QFile::exists(f) == false) qDebug () << error(3); } Gives an error message.
error: 'class QFile' has no member named 'setName' file.setName(f); // создали файл ^