StupidBeauty
Read times:574Posted at:Sun Jan 15 04:22:09 2012
- no title specified

转载:Wt::WFileDownload widget

目前不存在叫做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!

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4