//Pseodu
int i=0;
while(!eof(fptr){
ReadBuff(fptr,Buff,SIZE);
WriteToPrintf(Buff,SIZE);
ProgressBarUpdate(i);
qApp->processEvents(); // This will make your app responcive
i+=IncrementValue;
}
//Pseodu
int i=0;
while(!eof(fptr){
ReadBuff(fptr,Buff,SIZE);
WriteToPrintf(Buff,SIZE);
ProgressBarUpdate(i);
qApp->processEvents(); // This will make your app responcive
i+=IncrementValue;
}
To copy to clipboard, switch view to plain text mode
Kepp SIZE small.
But moving it to a new thread is the best solution.
Bookmarks