Or maybe use QAbstractItemView::scrollToBottom () on mouserelease/resize?
Btw what's the problem with valueChanged() signal being emitted?
I didn't understand what you're saying.
Hi .
I to have such kind of problem.
I need to insert a row to my qtablewidget when i click the INSERT button.
I have done like this.
ui->mytblwdgt->insertrow(ui->mutblwgt->currentrow() + 1);
but no row is added.
Can any one tell me how to fix it.
Thanks
Firstly, this is not the same problem. This thread was about keeping the bottommost row of the table visible... nothing at all to do with new rows.
Secondly, adding a new row to a table widget, mytblwdgt, based on the current index of another table widget, mutblwgt, is probably going to work sometimes and not others. I am going to assume that you did not copy and paste your actual code and that this is a typo. If there is no current row in the table then you will probably get a new row 0, otherwise you should get a new row where requested. If you are not getting a new row then we cannot see where the error is based on one line of trivial code in isolation and no description of where you looked for the row. Post a small, self-contained demonstration (in [code][/code] tags as you've been advised before) of the problem in the other thread you have asked this question in.
Last edited by ChrisW67; 21st September 2012 at 06:38.
Bookmarks