How subclass QFileSystemModel?
Unsolved
General and Desktop
-
wrote on 20 Jan 2019, 19:27 last edited by
In example DirView is this mode + TreeView.
I n first level are drives , next directories and files.
I want at first level two:
1.QStandardPaths group
2. My computer group
is difficult to subclass because QFileSystemModel uses private classes -
Hi,
What you are asking is not really clear. Can you maybe provide a picture of what you would like to achieve ?
-
wrote on 20 Jan 2019, 21:16 last edited by
-
wrote on 21 Jan 2019, 12:38 last edited by AndrzejB
Is near solved: I think , I don't subclass QFileSystemModel but write own smaller model which contain pointer to QFileSystemModel.
See example of very simple model: https://github.com/borneq/userQtExamples/blob/master/bexamplemodel.cpp
1/4