qfilesystemmodel
QFileSystemModel - Incremental update/pre-emptive update
From the Qt documentation: QFileSystemModel will not开发者_Go百科 fetch any files or directories until setRootPath() is called. This will prevent any unnecessary querying on the file system until tha[详细]
2023-04-01 19:33 分类:问答QFileSystemModel and QFileSystemWatcher delete from disk
I have a QTreeView which is populated through a reimplementation of QFileSystemModel. As far as I know, QFileSystemModel installs a QFileSystemWatcher on the rootPath. What I\'m tr开发者_C百科ying to[详细]
2023-03-28 02:46 分类:问答Qt File Browser based on QML
It is easy to implement a file browserby usi开发者_运维知识库ng QFileSystemModel. But the listview UI is not pretty. So I want to implement a file browser using QML. the QML has model/view support. Bu[详细]
2023-03-08 05:55 分类:问答Using QFileSystemModel's features for arbitrary list of files (not a directory)?
I\'ve created a frontend to the UNIX locate command. Right now I\'m just feeding the filenames from locate\'s output to a QListWidget. From the documentation it seems QFileSystemModel is better suited[详细]
2023-02-12 19:17 分类:问答How to exclude mapped network drives from QFileSystemModel in QT?
I\'m using a custom subclass QFileSystemModel in a treeview to allow users to select folders using checkboxes. My problem is that Mapped network drives are listed as hard drives, but I cannot operate[详细]
2023-01-31 09:59 分类:问答PyQt: removing QTreeView columns
I am using QTreeView with QFileSystemModel. It displays columns like Size, Type, Modification Date, which I don\'t need. How can I remove them from the view? I can\'t find any removeColumn in model o开[详细]
2023-01-30 04:59 分类:问答QT: QFileSystemModel _q_fileSystemChanged slot is executed on the UI thread which contradicts documentation
My UI is using QTreeView with QFileSystemModel to be able to select folders and files.The documentation for QFileSystemModel says that file structure update is done on a seperate thread which would me[详细]
2023-01-22 09:36 分类:问答Simulating a directory tree platform-independently
I am using Qt and Ruby in an application where I have to manipulate some directories and rename/move files. However, prior to the actual manipulation I need to show a \"preview\", ie, simulation of th[详细]
2023-01-22 00:28 分类:问答background color for certain items(rows) in QFileSystemModel QTreeView
How do i set开发者_JAVA技巧 a custom background color for certain rows in a QFileSystemModel applied on a QTreeView?you can use setData method and Qt::BackgroundColorRole to achieve that. This should[详细]
2023-01-19 22:06 分类:问答