I want have indicator for my process. So i use a signal for update the progressbar value

Qt Code:
  1. //header MakanPakeSambal
  2. signals:
  3. updateProgress(qint64, qint64);
To copy to clipboard, switch view to plain text mode 


Qt Code:
  1. //code MakanPakeSambal
  2. qDebug() << "Start : " << QTime::currentTime().toString("h:m:s");
  3. qint64 ukuran=_inFileinfo.size();
  4. qint64 i=0;
  5. while(_inFile.getChar(&c))
  6. {
  7. outFile.putChar(c);
  8. emit updateProgress(ukuran, i);
  9. i++;
  10. }
  11. qDebug() << "End : " << QTime::currentTime().toString("h:m:s");
To copy to clipboard, switch view to plain text mode 


And I use like this
Qt Code:
  1. Dialog::Dialog(QWidget *parent) :
  2. QDialog(parent),
  3. ui(new Ui::Dialog)
  4. {
  5. ui->setupUi(this);
  6.  
  7. mps=new MakanPakeSambal();
  8. connect(mps, SIGNAL(updateProgress(qint64,qint64)), this, SLOT(load(qint64, qint64)));
  9. }
  10.  
  11. void Dialog::load(qint64 max, qint64 curr)
  12. {
  13. ui->load->setMaximum(max);
  14. ui->load->setValue(curr);
  15. }
To copy to clipboard, switch view to plain text mode 

This is qDebug result without emit signal

Start : "18:3:28"
End : "18:3:42"

And with emit signal

Start : "18:4:20"
End : "18:12:15"

My method for get the progress value is wrong ?