how to set a custom qfilesystemmodel in qfiledialog

205 views Asked by At

I'd like to show a virtual file system alongside the normal file system in a qml file dialog. For that virtual file system i will use a customized class derived from qfilesystemmodel.

However how can i tell the qml file dialog to use my custom model?

I have seen in the qml/QtQuick/Dialogs/DefaultFileDialog.qml source code, that it has a modelComponent property but I don't know how to modify that property. Can anybody help? Is this even the right way to achieve it or should it be done in another way?

0

There are 0 answers