qt file copy remove exists1 [Qt] 파일 존재 여부 확인, 복사, 삭제하는 방법 (QFile) QFile를 이용하여 간단하게 파일 존재 여부, 복사, 삭제 등을 할 수 있어요. ○ 헤더 #include ○ 파일 존재 여부 확인 bool QFile::exists() const bool result = QFile::exists(file); ○ 파일 복사 bool QFile::copy(const QString &newName) bool result = QFile::copy(file, copy_file); ○ 파일 삭제 [static] bool QFile::remove(const QString &fileName) bool result = QFile::remove(FilePath); ○ 사용 예제 (파일 확인 후 복사, 삭제) #include QString file = "/home/ubuntu/test.m.. 2021. 5. 15. 이전 1 다음