Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Customise Windows Taskbar entry
Forum Updated to NodeBB v4.3 + New Features

Customise Windows Taskbar entry

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 362 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bob64
    wrote on last edited by
    #1

    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?

    JonBJ 1 Reply Last reply
    0
    • B Bob64

      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?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @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?

      B 1 Reply Last reply
      1
      • JonBJ JonB

        @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?

        B Offline
        B Offline
        Bob64
        wrote on last edited by
        #3

        @JonB Thank you!

        I had never come across that terminology before, but that helped me to find this, which looks promising:

        https://doc.qt.io/qt-5/qml-qtwinextras-jumplist.html

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved