Customise Windows Taskbar entry
-
When my Qt application is running on Windows (it's actually a QML app but I don't think that will make any difference here) an icon for it is shown on the Taskbar. If I right click on that a context menu is shown with three entries:
- <app name>.exe
- Pin to taskbar
- Close window
The problem is that if one clicks on the exe entry, it fails to start because my application has to be started via a script and not by running the executable directly. This is already handled correctly in the Start Menu.
I suspect that the "Pin to taskbar" entry won't do anything useful for similar reasons.
Is there any way to customise what is in this menu for a Qt application? Either by removing entries altogether or by customising what the targets for the entries are?
-
@Bob64
Don't quote me, but I think these entries are called "jump lists".A jump list is a system-provided menu that appears when the user right-clicks a program in the taskbar or on the Start menu.
Have a read of https://learn.microsoft.com/en-us/samples/microsoft/windows-universal-samples/jumplist/, look at the source code and see if that is the right direction?