Results 1 to 6 of 6

Thread: Create a shortcut in the Mainmene of the OS

  1. #1
    Join Date
    Jul 2010
    Posts
    14
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Create a shortcut in the Mainmene of the OS

    Hi,

    is it possible to create a shortcut in the main menu of the operating system?
    My application has to create a shortcut in the autostart folder of the e.g. start menu from windows.

    If yes, could someone give me a hint where to find such things?

  2. #2
    Join Date
    May 2010
    Posts
    61
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    2
    Thanked 6 Times in 5 Posts

    Default Re: Create a shortcut in the Mainmene of the OS

    Hi HeReSY,

    How about just creating the file that you want under the Current Users's Start Menu?
    e.g.: C:\Documents and Settings\Wladek\Start Menu.

    You need it to be a specific Shortcut? (*.ink). For this, don't know if it is possible.

    Regards,
    Wladek
    One second is long, everything longer than two seconds is definitely too long.

  3. #3
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanks
    62
    Thanked 260 Times in 246 Posts

    Default Re: Create a shortcut in the Mainmene of the OS

    With Qt, i don't think that you can... (you don't even know where the user <your client> will copy your executable so even if you "hard code" an shortcut and save it to Desktop/ or Some Menu... you don't know the path to your application)

    But you can (and it's recommended to) use an installer (for each OS you compile) and that will install your application (with the necessary dll's and stuff) and create shortcuts for it.
    Last edited by Zlatomir; 16th July 2010 at 18:59.

  4. #4
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    6
    Thanked 348 Times in 333 Posts

    Default Re: Create a shortcut in the Mainmene of the OS

    Note that "C:\Documents and Settings\" doesn't exist on Windows 7, it's "C:\Users". I don't have access to a Win7 PC to check if there's a Start menu under there.

    Much better to use an OS-specifc installer to do the job for you.

  5. #5
    Join Date
    Jul 2010
    Posts
    14
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Create a shortcut in the Mainmene of the OS

    Thanks for the replies. I found a solution that i have integrated into my application.

    We talk to our customer and he said, that he only wanted, that the application is stated, when windows started (autorun).
    Now i use QSettings and some regestry entries to create this behavior.

    HeReSY

  6. #6
    Join Date
    May 2010
    Posts
    61
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    2
    Thanked 6 Times in 5 Posts

    Default Re: Create a shortcut in the Mainmene of the OS

    Hi,

    Could you please detail the solution that you adopted?
    Some example code would also be nice

    Thanks,
    Wladek
    One second is long, everything longer than two seconds is definitely too long.

Similar Threads

  1. Replies: 4
    Last Post: 1st May 2009, 11:00
  2. Create shortcut, add to the dock after install on Mac
    By mourad in forum Qt Programming
    Replies: 1
    Last Post: 25th June 2008, 08:43
  3. Shortcut
    By Voldemort in forum Qt Programming
    Replies: 16
    Last Post: 2nd May 2007, 20:51
  4. shortcut with more than one key
    By ChasW in forum Qt Programming
    Replies: 1
    Last Post: 26th January 2007, 06:38
  5. Trying to set shortcut
    By mikro in forum Newbie
    Replies: 2
    Last Post: 30th November 2006, 09:55

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.