QFile file("../studentdata/students.txt");
file.open(QIODevice::WriteOnly| QIODevice::Text);
qDebug()<<file.isOpen()<<file.isReadable()<<file.isWritable();
내가 상대 경로로 파일 students.txt을 열고 자하지만, qDebug 결과는 슬래시 거짓 거짓Qt : 상대 경로로 텍스트 파일을 열려면 어떻게해야합니까?
절대 경로를 QFile 생성자에 전달하면 작동합니까? –
http://stackoverflow.com/questions/15619517/qfile-wont-open-the-file –