找回密码
 立即注册
收起左侧

QFileDialog获取文件夹路径问题

5
回复
13740
查看
[复制链接]
累计签到:27 天
连续签到:1 天
来源: 2016-8-10 18:14:06 显示全部楼层 |阅读模式
1Qter豆
能获取到文件夹路径"C:/Users/xxd/Pictures/lovewallpaper",但会输出错误:
Starting E:\qt\build-Picrename-Desktop_Qt_5_7_0_MinGW_32bit-Debug\debug\Picrename.exe...
onecoreuap\shell\ext\thumbnailcache\lib\thumbcacheapi.cpp(285)\thumbcache.dll!659EFEFF: (caller: 659DEF51) ReturnHr(1) tid(1f0c) 80004005 未指定的错误

onecoreuap\shell\ext\thumbnailcache\lib\thumbcacheapi.cpp(159)\thumbcache.dll!659FB56E: (caller: 74A36740) ReturnHr(2) tid(1f0c) 80004005 未指定的错误

onecoreuap\shell\ext\thumbnailcache\lib\thumbcacheapi.cpp(285)\thumbcache.dll!659EFEFF: (caller: 659DEF51) ReturnHr(3) tid(1f0c) 80004005 未指定的错误

onecoreuap\shell\ext\thumbnailcache\lib\thumbcacheapi.cpp(285)\thumbcache.dll!659EFEFF: (caller: 659DEF51) ReturnHr(4) tid(1f0c) 80004005 未指定的错误

"C:/Users/xxd/Pictures/lovewallpaper"

以下是相关代码:
void
Widget::on_srcpushButton_clicked()       //打开按钮的漕函数
{
    QString srcpath=QFileDialog::getExistingDirectory(this,
                                    tran->toUnicode("源文件路径"),
                                    "C:"  );
   qDebug()<<srcpath;

}

新手,哪位大牛指导以下,小弟不胜感激

最佳答案

查看完整内容

那大可不理,很多时候是系统原因
回复

使用道具 举报

尚未签到

2016-8-10 18:14:07 显示全部楼层
boboxxd 发表于 2016-8-11 08:46
能正常运行,就是输出栏里有这样的错误

那大可不理,很多时候是系统原因
回复

使用道具 举报

尚未签到

2016-8-11 00:01:52 显示全部楼层
话说会影响程序正常运行么?
回复

使用道具 举报

累计签到:27 天
连续签到:1 天
2016-8-11 08:46:35 显示全部楼层
Joey_Chan 发表于 2016-8-11 00:01
话说会影响程序正常运行么?

能正常运行,就是输出栏里有这样的错误
回复

使用道具 举报

累计签到:27 天
连续签到:1 天
2016-8-12 09:11:52 显示全部楼层
Joey_Chan 发表于 2016-8-11 23:37
那大可不理,很多时候是系统原因

哦哦,明白了,谢谢啊。
回复

使用道具 举报

尚未签到

2018-11-26 16:07:54 显示全部楼层
楼主,最后你如何解决的
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

公告
可以关注我们的微信公众号yafeilinux_friends获取最新动态,或者加入QQ会员群进行交流:190741849、186601429(已满) 我知道了