Re: [Interest] How to get a column data from QTableWidget

2020-05-29 Thread Tony Rietwyk
Hi Ghobad, item->tableWidget()->item(item->row(), my_intended_col_index)->data(role) Regards, Tony On 29/05/2020 10:35 pm, Ghobad Zarrinchian wrote: Dear all, I have a QTableWidget with some rows and columns in my application and I want to extract the data from a specific column when its row

Re: [Interest] How to get a column data from QTableWidget

2020-05-29 Thread alexander golks
> void MainWindow::on_tableWidget_itemDoubleClicked(QTableWidgetItem *item) > > { > > QString data = item->col(my_intended_col_index).toString(); // > no such function maybe something like: QString = tableWidget->item(item->row(),my_intended_col_index).toString(); alex< -- /*

[Interest] How to get a column data from QTableWidget

2020-05-29 Thread Ghobad Zarrinchian
Dear all, I have a QTableWidget with some rows and columns in my application and I want to extract the data from a specific column when its row (item) is double clicked. I don't know which function can get me the data when having a pointer to the item. I use the slot function below and need some me