PDA

View Full Version : QDirModel and Most recently used ( MRU )



duckman_1991
16th September 2014, 23:20
I am looking at the QDirModel and hoping for a way to add most recently used at the top of a combo box with the entries populated by the QDirModel. Does anyone know of a way of doing this?

I thought of just adding the entries into the model but QDirModels don't allow adding entries.

anda_skoa
17th September 2014, 09:08
Maybe through aggregation.
I.e. have you own model that contains the most recently used files and a QDirModel and then delegates to the dir model when appropriate.

Cheers,
_