设置Qt依赖库路径
来源:互联网 发布:php生成短网址 编辑:程序博客网 时间:2024/06/15 01:10
在Qt5.0版本以后,由于框架的改动,打包的程序安装到其它电脑会提示找不到Qt库的路径, 这时候需要注册这些库,如下:
void Util::registerPluginsDir(QDir &exeDir){ QString pluginsRelPath = "qtplugins"; QString platformsRelPath = "platforms"; QString sqlDriversRelPath = "sqldrivers"; QString imageformatsRelPath = "imageformats"; QString pluginsPath = exeDir.absoluteFilePath(pluginsRelPath); QString platformsPath = QDir(pluginsPath).absoluteFilePath(platformsRelPath); QString sqlDriversPath = QDir(pluginsPath).absoluteFilePath(sqlDriversRelPath); QString imageformatsPath = QDir(pluginsPath).absoluteFilePath(imageformatsRelPath); QStringList pathes = QCoreApplication::libraryPaths(); pathes << pluginsPath; pathes << platformsPath; pathes << sqlDriversPath; pathes << imageformatsPath; QCoreApplication::setLibraryPaths(pathes);}
0 0
- 设置Qt依赖库路径
- qt 路径设置
- Vs + Qt 各种路径设置
- qt设置路径为应用程序启动路径
- VS2012设置通用路径和依赖项
- QT设置openCV头文件和链接动态库路径
- Linux下的QT的库路径设置和连接
- Qt——路径设置问题
- 设置Qt ui文件编译路径
- Qt构建套件路径手动设置
- 路径依赖
- 路径依赖
- windows查看dll依赖项,QT打包依赖库
- IOS lib库依赖设置
- rpath添加依赖库搜索路径
- rpath添加依赖库搜索路径
- rpath增添依赖库搜索路径
- rpath添加依赖库搜索路径
- windows配置xhprof,PHP性能分析工具
- 初来乍到
- (7)mapreduce 不执行reduce
- SQl高级语句-NULL 用作未知的或不适用的值的占位符(IS NULL、IS NOT NULL)
- HDU1535~Invitation Cards(spfa+邻接表反转)
- 设置Qt依赖库路径
- java-toString的调用
- 【Git & GitHub】解决办法:Could not read from remote repository.Please make sure you have the...
- LeetCode之路—— Palindrome Number
- Android 客户端 okhttp3 与服务器之间的双向验证
- QProcess调用外部程序
- redis k-v最操作
- 模糊聚类分析之基础
- 断点上传方案