hii..
I want to display number on the label;
I can do this by following code :

Qt Code:
  1. int num;
  2. QString qstr = QString::number(num);
  3. ui.label->setText(qstr);
To copy to clipboard, switch view to plain text mode 

my problem is if the number is single digit i.e 2 i want to display it as 02 in label.
how can this be done?