开发者

Get Qt to use the native Windows copy file widget

开发者 https://www.devze.com 2022-12-19 12:07 出处:网络
Excusing the actual folders used as an example, I want to achieve the following two widgets in Qt (the backend is similar to files, but not exactly filesystem files):

Excusing the actual folders used as an example, I want to achieve the following two widgets in Qt (the backend is similar to files, but not exactly filesystem files): folder-replace-dialog and copy-file-dialog

I know Qt can do the native save-file widget (using QFileDialog static methods)开发者_开发百科, but can it do the folder replace/file copy dialogs as well? Any suggestions?


You might have to call the Windows SHFileOperation directly for this. It should be possible whether your using gcc or the MS C++ compiler. You'll need to fill in the SHFILEOPSTRUCT but that shouldn't pose too much of a problem.

0

精彩评论

暂无评论...
验证码 换一张
取 消