目前不存在叫做Wt::WFileDownload 的东西,但是可以用WAnchor和WFileResource组合来实现下载服务器上任何文件的功能。这里有個例子:http://richelbilderbeek.nl/ToolTestSelectFileDialog.htm
http://redmine.emweb.be/boards/2/topics/2410
亮点:
To let a user download a file through http, you can use a WAnchor. But that only works for files that reside in the docroot of your http server.
To let a user download any file on your server, use a WFileResource (be sure to use suggestFileName() to set the name of the file, and you may want to set the content disposition type to attachment to suggest to the browser to use a 'save as' dialog). WFileResource + WAnchor = WFileDownload!
HxLauncher: Launch Android applications by voice commands