Results 1 to 2 of 2

Thread: QDirModel and Most recently used ( MRU )

  1. #1
    Join Date
    Sep 2014
    Posts
    1
    Qt products
    Qt5
    Platforms
    Unix/X11

    Question QDirModel and Most recently used ( MRU )

    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.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QDirModel and Most recently used ( MRU )

    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,
    _

Similar Threads

  1. Replies: 0
    Last Post: 14th August 2013, 15:01
  2. Implementing an "open recently opened files" menu?
    By joelthelion in forum Qt Programming
    Replies: 3
    Last Post: 6th March 2009, 10:49
  3. QDirModel and FTP
    By last2kn0 in forum Qt Programming
    Replies: 5
    Last Post: 19th April 2008, 00:02
  4. QDirModel
    By rvb13 in forum Qt Programming
    Replies: 2
    Last Post: 2nd November 2007, 16:03
  5. I recently used QT i need help badly
    By miguel_mark in forum Qt Programming
    Replies: 2
    Last Post: 22nd October 2007, 11:15

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.