Questions tagged [qfilesystemmodel]

A QFileSystemModel is a class from the Qt toolkit which provides a data model for the local filesystem.

The QFileSystemModel class gives access to the local filesystem. It provides functions for renaming and removing files and directories, and for creating new directories. In the simplest case, it can be used with a suitable display widget (such as a QTreeView) as part of a browser or filter.

The official Qt documentation can be found here for Qt 4.8 and here for Qt 5.

187 questions
0
votes
1 answer

Failing to Parse System Directories using QFileSystemModel for different Audio/Video Files

I am newbie in Qt and have started working on it from past few days. I have come across a situation where I need to parse/traverse my System Directories and search for files like .mp3, .mpg etc. Well in my .ui I have 2 Tree Views, one towards right…
StonedJesus
  • 397
  • 1
  • 5
  • 26
-1
votes
0 answers

Qt Designer + PyQt5 File Browser dosen't works

I'm trying to make a File Browser with Qt Designer and PyQt5 but it dosen't work well, I think it mitght be the self.ui import sys from PyQt5.QtWidgets import QMainWindow, QApplication, QPushButton, QFileDialog, QTreeWidget, QTreeView,…
-1
votes
1 answer

Crash when combining QFileSystemModel with QSortFilterProxyModel

I have QfileSysteModel and QSortFilterProxyModel. When I try to call QfileSysteModel.filePath to get the current index of the file Error occurs as core Dump. Here is a piece of code le = QLineEdit() lv = QListView() file_model =…
Dr. Zezo
  • 395
  • 2
  • 17
-1
votes
1 answer

Easiest way for sorting a QTreeView

I'm trying to do some basic Qt file manager app in Python 3.6 with PySide2. Code is like this: class MainWidget(QWidget): startDir = "." def __init__(self): super().__init__() isDirselectDone = self.selectContentDir() …
-1
votes
1 answer

QT QTreeView Not Connecting itemSelectionChanged

I am trying to figure out why my signal isn't connecting, I have the following code: connect(mFileTree, SIGNAL(itemSelectionChanged()), this, SLOT(OnItemSelected())); Yet it doesn't fire. mFileTree is a QTreeView there is a function called void…
Jalomba
  • 25
  • 6
-1
votes
1 answer

.app files behaves like folder in Qtreeview on MAC

I am using QSortFilterProxyModel in QTreeView for exploring all the files and folders of a directory on MAC systems. Its working fine. but my problem is, In my Qtreeview, .app files also behaves like folders. means .app files also have an expansion…
Ashish
  • 219
  • 2
  • 6
  • 22
-1
votes
2 answers

Fails to display mp3 files in TreeView in Qt

Alright I seem to have come across a situation where I need to traverse my directories and search for only .mp3 and .mpeg files. Once searched, I want to display them in my tree view. Basically I have 2 tree views in my app, one displays the system…
StonedJesus
  • 397
  • 1
  • 5
  • 26
1 2 3
12
13