i have a very easy question. how can i settext an int value??

Qt Code:
  1. int length;
  2. length=10;
  3. ui->lineEdit->setText("The length is:", length);
To copy to clipboard, switch view to plain text mode