Results 1 to 3 of 3

Thread: Display recent documents in Windows Start Menu/Taskbar

  1. #1
    Join Date
    Jan 2011
    Posts
    70
    Thanks
    43
    Thanked 4 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Display recent documents in Windows Start Menu/Taskbar

    After several futile hours of scouring the Qt Creator source code and Google searching, I turn to you, Qt Centre community. Several newer programs, including Qt Creator 2.8.0, display a list of recently-opened files when you right-click its icon in the taskbar or hover over it in the Recent Programs in the start menu.

    Here's what I mean with Qt Creator in the start menu:
    start menu.png

    and similarly on the taskbar:
    taskbar.png

    How do I populate/display a list of recent files on the taskbar and start menu in Windows 7? It looks like something QSettings supports, but I can't find it anywhere.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Display recent documents in Windows Start Menu/Taskbar

    They are called "Jump Lists" and can contain almost anything, not just an MRU list. It is a Windows 7+-only feature so I suggest you consult Microsoft's documentation as to how this is done... The MRU component of the Jump List seems to be at least partly automatic if you use the SHAddToRecentDocs API call.

    http://msdn.microsoft.com/en-us/libr.../gg281362.aspx

  3. The following user says thank you to ChrisW67 for this useful post:

    Phlucious (19th August 2013)

  4. #3
    Join Date
    Jan 2011
    Posts
    70
    Thanks
    43
    Thanked 4 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Display recent documents in Windows Start Menu/Taskbar

    Thanks! I couldn't figure out what exactly those were called. What file do I need to #include to gain access to that API? I didn't see it anywhere in the documentation.
    Last edited by Phlucious; 19th August 2013 at 23:31. Reason: reformatted to look better

Similar Threads

  1. Replies: 1
    Last Post: 4th November 2011, 11:25
  2. LNK2001 - Unresolved external (for Windows 7 Taskbar API)
    By naturalpsychic in forum Qt Programming
    Replies: 0
    Last Post: 2nd August 2011, 17:53
  3. Opening documents on Windows
    By fober in forum Qt Programming
    Replies: 12
    Last Post: 9th February 2011, 22:27
  4. Replies: 0
    Last Post: 4th November 2009, 18:15
  5. No Windows taskbar entry on new process.
    By Khal Drogo in forum Qt Programming
    Replies: 3
    Last Post: 18th November 2007, 17:11

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
  •  
Qt is a trademark of The Qt Company.