博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
qt设置路径为应用程序启动路径
阅读量:4165 次
发布时间:2019-05-26

本文共 274 字,大约阅读时间需要 1 分钟。

QDir::setCurrent(QCoreApplication::applicationDirPath());QString strLanPath = QObject::tr("%1\\skin\\public\\title.png").arg(QDir::currentPath());strLanPath = QDir::toNativeSeparators(strLanPath);setWindowIcon(QIcon(strLanPath));
主要的就是 QCoreApplication::applicationDirPath()

转载地址:http://lvqxi.baihongyu.com/

你可能感兴趣的文章
SIGINT and others
查看>>
vim编程常用命令(随时补充更新)
查看>>
一个简单的makefile示例及其注释
查看>>
python mysql
查看>>
高效人士的八个习惯
查看>>
mysql 赋给用户权限 grant all privileges on
查看>>
读取文件的几种方法
查看>>
yast 创建本地数据源
查看>>
vim 编码方式(encoding、fileencoding、fileencodings、termencoding介绍)
查看>>
程序员的十层楼
查看>>
windows 下php支持curl
查看>>
获取文件夹文件(C++)
查看>>
判断文件夹是否存在
查看>>
快速的内存分配器
查看>>
java中super 的两种用法
查看>>
bdb及其在php下扩展的安装
查看>>
bdb及其在php下扩展的安装
查看>>
android 小问题
查看>>
BerkeleyDB安装及配置
查看>>
标准的Activity Actions
查看>>