Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
以下代码引发failed to add paths.
failed to add paths
auto f = new QFileSystemWatcher(); f->addPath("C:"); // Also tried f->addPath("C:/") and f->addPath("C:\\")
添加路径之类的C:/folder工作正常。
C:/folder
所以我无法观看 Windows 驱动器。
可以同时监视的文件和目录的数量存在系统相关限制。如果已达到此限制,则不会将路径添加到文件系统观察程序,并且将向 stderr 打印一条警告消息,即failed to add paths.