Here is another problem.
when i am trying to set the max length of a text i dint find any function to do it.

can i set the text length for a particular column.
please provide me an example or a piece of code.

And in my application i want to give an option to the user through a button.when the user clicked on that button a row should be added to my table.
my code is.

onbuttonclicked()
{
ui->mytablewiget->insertrow(ui->mytablewiget->rowcount());
}

but no row is added while running.

is there any other way>


Thanks.