当前位置: 代码迷 >> QT开发 >> qt 安装完后移动目录,该如何解决
  详细解决方案

qt 安装完后移动目录,该如何解决

热度:72   发布时间:2016-04-25 03:35:41.0
qt 安装完后移动目录
qt新手请教,安装时选择 g:\qt,便自动安装到 g:\qt\5.1.1\vs2010, 里面有 include ,lib,plugins 等目录
因为我只需要者3个目录的文件,所以把红色的两层删掉了,就是往上移了两层,变成了
g:\qt\include
g:\qt\lib
g:\qt\...

这样启动qt程序时报错
This application failed to start because it could not find or load the Qt platfo
rm plugin "windows".

Reinstalling the application may fix this problem.

原因貌似和 g:\qt\plugins\platforms 下的dll有关,但不知道怎么搞

两个问题
1 如果我的程序只在本机运行,如何设置能解决上面错误?
2 发布qt程序时候都必须带上这个plugins 目录的吗?
 

------解决方案--------------------
platforms 目录考一份放在根目下面。或程序运行的根目录下面。
  相关解决方案