Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

Subclassing QAbstractProxyModel to work with QFileDialog

$
0
0
Hello, I would like to create a custom QFileDialog that has a special behaviour: I’d like the files in the directory to be represented as 1 file if they belong to such a sequence: file0.jpg file1.jpg file2.jpg ... would be represented as only 1 item: file#.jpg Also whenever the user would select file#.jpg I’d like the file dialog to return all the associated file names. After reading all the Qt documentation I find it really hard to pull-off. I figured I’d have to subclass QAbstractProxyModel and call QFileDialog::setProxyModel but I don’t really know what to do with the QAbstractProxyModel Does anybody have any idea on how to get started on this?

Viewing all articles
Browse latest Browse all 18427

Trending Articles