Project

General

Profile

Actions

Support #1208

closed

implement progressbar

Added by Sreehari N S about 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
Start date:
03/22/2012
Due date:
% Done:

0%

Estimated time:

Description

hello ,

i am writing a simple Wt application in which i am using boost to copy files.i need to implement the WProgressbar to show the show the status..but being it is running on same thread i can't get the copied info and copying simultaneously.plz help.

Actions #1

Updated by Wim Dumon about 12 years ago

Does it help when you call WApplication::processEvents()? That will send the updates to the client intermediately.

Wim.

Actions #2

Updated by Koen Deforche about 12 years ago

  • Status changed from New to Resolved

Hey,

You have two options:

  • do the work in a work thread and user server push to indicate progress. This is the preferred way, see for example the feature/serverpush example that does exactly this, using a WProgressBar to show progressbar
  • do the work in the event loop, but use processEvents() to update the progress bar (as Wim suggests), but this will cause the actual work to slow down because it is suspended while the progressbar result is rendered to the browser and control returns to the server.

Regards,

koen

Actions #3

Updated by Koen Deforche almost 12 years ago

  • Status changed from Resolved to Closed
  • Target version changed from 3.2.0 to 3.2.1
Actions

Also available in: Atom PDF