PDA

View Full Version : How to find out row index of a QTableWidget.



Niamita
18th April 2012, 13:40
Hi

I have a table which has four column. Each column contain combobox. I want to find row no of table when clicked on combobox. Table is created at run time.

Spitfire
19th April 2012, 16:32
When adding combobox to the table, set a property on it describing row and column, this way you'll be able to easily retreive it whenever you want.

it won't work if you rable is dynamic though.

I think it would be easier to do if you'd use table view and item delegate.