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().