Is there a virtual file explorer GUI?
-
I want to make a dockable widget as close to Windows File Explorer / Mac Finder as possible. But the model contains custom items and folders - not the local file system.
I think I can manage customizing the model by subclassing QAbstractItemModel.
But what about the GUI? Has anyone ever tried this before? -
@esoteric
As @SGaist says, you must write your own code to produce a UI as specific as this.I don't know what @SGaist thinks, as he is more familiar with it than me, but you might want to look at KDE Dolphin. This is written with Qt. Source is at https://invent.kde.org/system/dolphin. It does use the filing system, which you don't want, but may give you code for the "furniture" and way of working you are looking for in your Explorer.
-
Your question is unclear. There is a file dialog that is a specialization of QDialog. Have you looked at it?
-
@esoteric said in Is there a virtual file explorer GUI?:
But what about the GUI?
What about https://doc.qt.io/qt-5/qtreeview.html ?
-
@Kent-Dorfman said in Is there a virtual file explorer GUI?:
Your question is unclear. There is a file dialog that is a specialization of QDialog. Have you looked at it?
QFileDialog? That will not work AFAIK because I have to use QFileSystemModel and my "files" are not on the file system.
@jsulm said in Is there a virtual file explorer GUI?:
What about https://doc.qt.io/qt-5/qtreeview.html ?
That's great for a "details" view, but there's a lot more views offered by Windows File Explorer I was hoping I could easily find. See image:
-
Hi,
No there's no ready made widget like that one. You have to build your own.
-
@esoteric
As @SGaist says, you must write your own code to produce a UI as specific as this.I don't know what @SGaist thinks, as he is more familiar with it than me, but you might want to look at KDE Dolphin. This is written with Qt. Source is at https://invent.kde.org/system/dolphin. It does use the filing system, which you don't want, but may give you code for the "furniture" and way of working you are looking for in your Explorer.
-
Indeed Dolphin is a good example.