PDA

View Full Version : Display recent documents in Windows Start Menu/Taskbar



Phlucious
19th August 2013, 20:53
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:
9429

and similarly on the taskbar:
9430

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.

ChrisW67
19th August 2013, 22:03
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/library/windows/desktop/gg281362.aspx

Phlucious
19th August 2013, 23:31
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.