PDA

View Full Version : Shortcut of Qt application.exe



Ketan Shah
2nd June 2011, 16:29
Hii, can any 1 help me, how can I make shortcut.exe of my Qt application..please help.

stampede
2nd June 2011, 17:21
Right click on your app exe -> "Create shortcut" :rolleyes:

giantdragon
2nd June 2011, 23:58
If you need to deploy your app and create shortcuts on Desktop and Start Menu use installer, e.g. InnoSetup.

Ketan Shah
3rd June 2011, 07:54
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..

Santosh Reddy
3rd June 2011, 08:06
Refer QFile documentation, it should be straight forward

bool QFile::link ( const QString & linkName )

Also you can get the application executable name (including complete path) from argv[0], the main() function parameter

stampede
3rd June 2011, 09:15
... or QCoreApplication::applicationFilePath() (http://doc.qt.nokia.com/latest/qcoreapplication.html#applicationFilePath)

Ketan Shah
3rd June 2011, 09:17
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...