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.
我有一个 Qt 应用程序,它根据 QDir 的信息创建一个 qtreeview。有没有办法,如果目录信息发生变化(比如我添加一个新文件或删除一个现有文件),qtreeview 会更新吗?
谢谢!=)
要监视文件系统更改,您可以使用QFileSystemWatcher