Hi,
I need write many files at the same time,so I define many files before use them and put them in QList. code as follows:
QList<QFile> writeFileList;
for(int i=0;i<count;i++)
{
QString writeFileName = writeDir+"/"+fileName[i];
QFile writeFile(writeFileName);
writeFile.open(QIODevice::WriteOnly);
QDataStream out(&writeFile);
writeFileList.append(writeFile);
}
but error occur:
C2248 "can not access private member declared in class 'QFile'" .
How to solve it ?thank you.
Bookmarks