PythonQt.Qt.QFileSystemWatcher · declarations 001
Back to PythonQt.Qt.QFileSystemWatcher
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.Qt.QFileSystemWatcher.destroyed; argument details are not documented.
directoryChanged
directoryChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.Qt.QFileSystemWatcher.directoryChanged; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QFileSystemWatcher::directoryChanged(const QString \&path)
This signal is emitted when the directory at a specified path is modified (e.g., when a file is added or deleted) or removed from disk. Note that if there are several changes during a short period of time, some of the changes might not emit this signal. However, the last change in the sequence of changes will always generate this signal.
Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.
See also fileChanged().
Source: https://doc.qt.io/archives/qt-5.15/qfilesystemwatcher.html#directoryChanged
fileChanged
fileChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.Qt.QFileSystemWatcher.fileChanged; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QFileSystemWatcher::fileChanged(const QString \&path)
This signal is emitted when the file at the specified path is modified, renamed or removed from disk.
Note: As a safety measure, many applications save an open file by writing a new file
and then deleting the old one. In your slot function, you can check
watcher.files().contains(path). If it returns false, check whether the file still
exists and then call addPath() to continue watching it.
Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.
See also directoryChanged().
Source: https://doc.qt.io/archives/qt-5.15/qfilesystemwatcher.html#fileChanged
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.Qt.QFileSystemWatcher.objectNameChanged; argument details are not documented.