Display progress bar as copying one file
2010-08-01 17:33
239 查看
]class MyClass : ... { ... public slots: void onWrite( qint64 ); }; MyClass::MyClass( ... ) { // ... progress->setMaximum( QFileInfo(fromFile).size() / 1024 ); written = 0; connect( &toFile, SIGNAL(bytesWritten(qint64)), SLOT(onWrite(qint64)) ); // ... } void MyClass::onWrite( qint64 w ) { written += w; progress->setValue( written / 1024 ); }
相关文章推荐
- Display progress bar as copying one file
- Ajax Upload; A file upload script with progress-bar, drag-and-drop
- Google Chrome: Make the Bookmarks Bar Display as Icons Only
- 报错解决 svn diff Cannot display: file marked as a binary type 无法显示
- slickUpload (Progress Bar for Uploading file)
- File Upload Manager and Server Side File Upload Progress Bar
- Server Side File Upload Progress Bar
- ASP.NET File Upload with Progress Bar
- A Better File Upload Progress Bar using Python, AJAX Prototype, & JSON
- With one file handling all requests, you can centralize things such as security handling, configurat
- ASP.NET File Upload with *Real-Time* Progress Bar
- In Android how to display one view as overlay on top of another view?
- Could not load file or assembly ‘AjaxControlToolkit’ or one of its dependencies. The parameter is incorrect.
- Flex中如何通过监听focusIn和focusOut事件,在通过displayAsPassword属性固定密码格式显示文本框获取焦点时显示文本
- Git 合并时冲突 Merge Conflict:file still marked as conflicted 解决方法
- tomcat 出现Publishing the configuration... Error copying file to C:/Program Files/Apache Software Foun
- how to display different title in one master page
- Java源码——读取顺序存取文件中的数据(read text file and display each record)
- Get and display the size of file and directory in Linux system using du command 获取和现实linux文件大小(三)
- UISearchBar和 UISearchDisplayController的使用