Noob
5th May 2013, 09:31
I've got my slot:
void MainWindow::fdelete()
{
ui->lineEdit->text().remove(ui->lineEdit->text().length() , 1);
}
And i can't figure out, why this is not working? I want to delete the last character on the right. So it has to be the last one added.
The text().length() should return the amount of characters inside the string, so this should be the position of the last one, am I wrong?
thanks for answer.
void MainWindow::fdelete()
{
ui->lineEdit->text().remove(ui->lineEdit->text().length() , 1);
}
And i can't figure out, why this is not working? I want to delete the last character on the right. So it has to be the last one added.
The text().length() should return the amount of characters inside the string, so this should be the position of the last one, am I wrong?
thanks for answer.