当前位置: 代码迷 >> QT开发 >> Qt在程序中创设一个exe的快捷方式到指定位置
  详细解决方案

Qt在程序中创设一个exe的快捷方式到指定位置

热度:37   发布时间:2016-04-25 03:58:39.0
Qt在程序中创建一个exe的快捷方式到指定位置
如题,一个工程编译生成exe文件后,怎样创建一个exe的快捷方式到指定目录?
先谢过了!
Qt 快捷方式

------解决方案--------------------
啥意思?右键发送到桌面快捷方式不就可以了么~~

要打成安装包的话用installsheild
------解决方案--------------------
Qt没有这个功能
------解决方案--------------------
bool QFile::link ( const QString & linkName )
Creates a link named linkName that points to the file currently specified by fileName(). What a link is depends on the underlying filesystem (be it a shortcut on Windows or a symbolic link on Unix). Returns true if successful; otherwise returns false.

This function will not overwrite an already existing entity in the file system; in this case, link() will return false and set error() to return RenameError.

Note: To create a valid link on Windows, linkName must have a .lnk file extension.

Note: Symbian filesystem does not support links.

See also setFileName().