[導讀]?QString?imagePath?=QCoreApplication::applicationDirPath()+"/good.png";
?if?(QFile::exists(imagePath
?QString?imagePath?=QCoreApplication::applicationDirPath()+"/good.png";
?if?(QFile::exists(imagePath))
?{
??????QFile?file(imagePath);
??????file.setPermissions(QFile::ReadOther?|?QFile::WriteOther);
?}把圖片good.png屬性設置為只讀,通過上述代碼可以將只讀屬性去掉。





