Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt deployment start menu shortcut icon not working

Qt deployment start menu shortcut icon not working

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
deploymentstart menu
1 Posts 1 Posters 177 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.
  • A Offline
    A Offline
    ap_cr8tr
    wrote on 22 Mar 2024, 16:51 last edited by
    #1

    Hello,

    I have deployed an app with Qt and have a script running to add the app to the start menu but the icon does not show up. I have tried a few different variations "iconPath" as well as adding in the actual icon to the deployed app but it still did not work.

    Here is my code

    function Component()
    {
        // default constructor
    }
    Component.prototype.createOperations = function()
    {
        component.createOperations();
        if (systemInfo.productType === "windows") {
            component.addOperation("CreateShortcut", "@TargetDir@/win64/app.exe", "@StartMenuDir@/app.lnk",
                "workingDirectory=@TargetDir@", "iconPath=@TargetDir@\\win64\\logo.ico",
                "iconId=1", "description=Launch app");
        }
    }
    

    The icon file sits in the TargetDir/win64 folder, just double checked.

    The icon just appears as a blank file icon instead of the desired icon for the application.

    First time deploying an app so any help would be appreciated. If you need anymore information please let me know

    1 Reply Last reply
    0

    1/1

    22 Mar 2024, 16:51

    • Login

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