Get Qt to use the native Windows copy file widget
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.
精彩评论