版本信息:Win10(64bit) + Qt5.4.2(64bit)+QtCreator3.4.1
1 错误描述
通过下面的方法打开文件时:
QString fileName;
fileName = QFileDialog::getOpenFileName( this,
tr("Load RootSystem"), tr(" "), tr("RootSystem (*.dat)") );
在
应用程序程序输出窗口中提示:
shell\comdlg32\fileopensave.cpp(9456)\COMDLG32.dll!00007FFCD579260A: (caller: 00007FFCD579A866) ReturnHr[PreRelease](1) tid(22a8) 80070490 找不到元素。
CallContext:[\PickerModalLoop\InitDialog\FileDialogInitEnterpriseData]
2 问题分析
根据参考资料[3]关于QFileDialog的说明,上述关于QFileDialog::getOpenFileName()的调用时没有错误的,而参考资料[1]则给我们提示,这应该是Win10的问题。
参考资料
[1]why is windows10 polluting the debuglog?