Results 1 to 7 of 7

Thread: Shortcut of Qt application.exe

  1. #1
    Join Date
    May 2011
    Location
    Mumbai, India
    Posts
    22
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Shortcut of Qt application.exe

    Hii, can any 1 help me, how can I make shortcut.exe of my Qt application..please help.

  2. #2
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Shortcut of Qt application.exe

    Right click on your app exe -> "Create shortcut"

  3. #3
    Join Date
    Jan 2011
    Posts
    34
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Shortcut of Qt application.exe

    If you need to deploy your app and create shortcuts on Desktop and Start Menu use installer, e.g. InnoSetup.

  4. #4
    Join Date
    May 2011
    Location
    Mumbai, India
    Posts
    22
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Shortcut of Qt application.exe

    I just want to add a checkbox in my application,such that on checking that checkbox the my application's shortcut.exe should be started on windows startup and on unchecking the checkbox, the shortcut.exe should not start on windows startup….please help..

  5. #5
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 453 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Shortcut of Qt application.exe

    Refer QFile documentation, it should be straight forward
    Qt Code:
    1. bool QFile::link ( const QString & linkName )
    To copy to clipboard, switch view to plain text mode 

    Also you can get the application executable name (including complete path) from argv[0], the main() function parameter
    Last edited by Santosh Reddy; 3rd June 2011 at 07:09. Reason: updated contents

  6. The following user says thank you to Santosh Reddy for this useful post:

    Ketan Shah (3rd June 2011)

  7. #6
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Shortcut of Qt application.exe


  8. #7
    Join Date
    May 2011
    Location
    Mumbai, India
    Posts
    22
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Shortcut of Qt application.exe

    Hey can you help me one more time, how can I add my application.exe on computer startup for MAC...
    For Windows I had add my application's shortcut.exe to the startup folder..
    But for MAC I am not getting how can I do the same...

Similar Threads

  1. Application directory path on linux (shortcut)
    By MadBear in forum Qt Programming
    Replies: 2
    Last Post: 11th March 2018, 20:18
  2. Making shortcut
    By kib2 in forum Qt Programming
    Replies: 4
    Last Post: 28th June 2008, 18:20
  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.