qfilesystemmodel Questions

4

I am using QFileSystemModel along with QListView, and I want the first item shown by the model to get selected by default. How I do that every time I click an item ?
Lys asked 1/4, 2011 at 10:4

3

I am try an example in Model/View Programming. http://doc.qt.io/qt-5/model-view-programming.html To demonstrate how data can be retrieved from a model, using model indexes, we set up a QFileSyste...
Uncut asked 5/11, 2015 at 12:31

2

Solved

This is the code i have to display a tree view of a directory called "C:\Myfolder". import sys from PyQt4 import QtGui,QtCore class Myview(QtGui.QMainWindow): def __init__(self,parent=None): Qt...
Nilotic asked 13/11, 2013 at 7:45

1

I set QFileSystemModel root path and then set it as QTreeView model, but if I try to find index of a speciffic file it is giving me D: I am sure the file is there ! self.model = QtWidgets.QFileSys...
Coatbridge asked 25/7, 2019 at 3:9

1

Solved

I'm new to QFileSystemModel class but I'm confused with the functions of setRootPath and setRootIndex
Helpful asked 15/5, 2018 at 19:35

1

Solved

How to display in a ListView manner files in a directory specified in the code in a PyQt window example : Like in the right pane of this QFileSystemModelDialog app
Selene asked 11/5, 2018 at 1:49

2

Solved

I am making a file browser in qt for some custom design-files. I want to load their preview as their thumbnail and for that reason I am using QIconProvider to return the Icon to my QFileSystemModel...
Katonah asked 25/8, 2016 at 11:55

1

Solved

I'm having a QListView with a QFileSystemModel. Based on a selection in a QTreeView, the QListView shows the content of the folder. Now I need to change the color of the filenames depending on some...
Bakehouse asked 31/10, 2016 at 9:33

0

I am trying to make a utility using python/pyqt to create a *.tar archive from a QFileSystemModel (including only those items that are checked). Now I want control of QFileSystemModel checkboxes to...
Cannonry asked 6/11, 2016 at 5:5

2

It is easy to implement a file browser by using QFileSystemModel. But the listview UI is not pretty. So I want to implement a file browser using QML. the QML has model/view support. But how to disp...
Riptide asked 26/5, 2011 at 3:22

2

Solved

In my project, I have a QTreeView displaying a location on my drive. I need to change all the icons of the files to a custom icon but leave the folders alone. I reimplemented QFileSystemModel and ...
Cigarillo asked 21/12, 2014 at 5:41

2

Solved

Simple question. I'd like to use F2 or Enter for rename, and double click to open a file. Using self.treeView.doubleClicked.connect(self.doubleclick) I can do things in my self.doubleClick method,...
Cnidoblast asked 1/10, 2012 at 9:45

2

Solved

I am attempting to create a Qt application which shows the contents of a folder (“Users” folder in Mac OS). Here is the code: QFileSystemModel *dirModel = new QFileSystemModel; dirModel->setRoo...
Opine asked 10/9, 2012 at 18:53

2

Solved

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...
Leukemia asked 10/12, 2010 at 21:47
1

© 2022 - 2024 — McMap. All rights reserved.