Still stuck with QTableWidget
hey there i am still trying to obtain the users data from my QTableWidget. i tried using the following line
int multiply = demands->item(2,1)->data(Qt::DisplayRole).toInt();
but it only gives the data that was originally there before the user enters the new data and not afterwards...do i have to add an event filter of some kind so that i only record the input - once the user has clicked on a cell and modifed it???
Re: Still stuck with QTableWidget
How do you change the value in your model? If data() retrieves an "old" value, it means there is no "new" value. It looks like editing the item failed or was not completed. Could you please show the editing code?
Re: Still stuck with QTableWidget
Please, don't start more than one thread on the same problem.