Actions
Support #1208
closedimplement progressbar
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.
Updated by Wim Dumon over 12 years ago
Does it help when you call WApplication::processEvents()? That will send the updates to the client intermediately.
Wim.
Updated by Koen Deforche over 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
Updated by Koen Deforche over 12 years ago
- Status changed from Resolved to Closed
- Target version changed from 3.2.0 to 3.2.1
Actions