The python PyQt5.QtCore.QFile.rename method is used to rename a file. This method is a part of the QtCore module of PyQt5 library. It allows the user to change the name of the file, while retaining the same file content and location. The rename method takes the new name of the file as a parameter and automatically updates the file name. This is a convenient way to modify the name of a file without having to create a new file and copy its content.
Python QFile.rename - 15 examples found. These are the top rated real world Python examples of PyQt5.QtCore.QFile.rename extracted from open source projects. You can rate examples to help us improve the quality of examples.