Implementing a Qt file with another file system library (boost)

I am writing an application that requires me to use a different file system and file handlers, rather than qt by default. Basically, what I want to do is use the qt file dialog, but it has a basic file system handler (for example, built using the boost file system library) that handles all operations regarding files and directory operations in this dialog box. I already wrote a custom file engine that handles some of the operations, but now I'm stuck with the Qt file system model and the file system file engine, since I need to transmit signals for this custom file engine. It looks like I have a difficult task ahead. Am I heading in the right direction?

Is there any other easy way that I could implement this? Can anyone give me an idea of ​​how to proceed. I thought about looking in proxy models, but not sure if this will work.

Thanks in advance for your help.

+3
source share
2 answers

The proxy model works with the data contained in the base model, so you cannot use it to get completely new model content.

The obvious way to accomplish such tasks is to research which model QFileDialog has, and then replace the model.

, , QFileDialog, , , - : ( QFileDialog, 't ), setSourceModel(), .

QFileDialog , , . , , , - .

+1

QAbstractFileEngine .., QDir Qt 4.6 - . Qt bug 10333 .

0

Source: https://habr.com/ru/post/1740641/


All Articles