addPath("C:/") a-6ren">
gpt4 book ai didi

c++ - QFileSystemWatcher : failed to add paths C: (can't watch Windows drives)

转载 作者:太空宇宙 更新时间:2023-11-04 14:16:34 24 4
gpt4 key购买 nike

以下代码引发添加路径失败

auto f = new QFileSystemWatcher();
f->addPath("C:");
// Also tried f->addPath("C:/") and f->addPath("C:\\")

添加像 C:/folder 这样的路径就可以了。

所以我看不到 Windows 驱动器。

最佳答案

可同时监视的文件和目录的数量存在系统依赖限制。如果达到此限制,则不会将路径添加到文件系统观察器,并且会向 stderr 打印一条警告消息,即 无法添加路径

关于c++ - QFileSystemWatcher : failed to add paths C: (can't watch Windows drives),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10667993/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com