add note about watching non-existing directories [ci skip]

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-11-15 20:39:27 +02:00
parent a61aa26ba0
commit a0e92870a7

View file

@ -146,6 +146,11 @@ QFileSystemWatcher::~QFileSystemWatcher()
otherwise the fileChanged() signal is emitted when \a path is otherwise the fileChanged() signal is emitted when \a path is
modified, renamed or removed. modified, renamed or removed.
\note To watch for the creation of non-existing directories you
must ensure that the directory path to watch for ends with
trainling slash, otherwise it cannot be distinguished from file
path.
\sa addPaths(), removePath() \sa addPaths(), removePath()
*/ */
void QFileSystemWatcher::addPath(const QString &path) void QFileSystemWatcher::addPath(const QString &path)