Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to create a file shortcut programatically under windows?
xalam last edited by xalam
I want to create my applications's shortcut programatically in start menu >> startup group. I also need to be deleted it based on the option in application if user doesn't want auto start feature. I see QFile::link() but could this do the job? I don't know how to use it.
If that is not possible, is the any other way I enable auto-start my application when windows boots up?
AFAIK, link is the right choice, note the requirement for Windows.
Create a QFile for the file you want to link to, then call link and pass it the link name. The name can be the full path to were you want to have that link.