Hi to all
I've a question;
why in my QTableWidget with QComboBox cells I cannot use currentRow() function ?
There is a special Selection modality to set?
Thanks a lot
Manuel
Hi to all
I've a question;
why in my QTableWidget with QComboBox cells I cannot use currentRow() function ?
There is a special Selection modality to set?
Thanks a lot
Manuel
I want to be more precise:
when I select the QComboBox "cell" in my TableWidget
myTable->currentRow() returns me a 0xffffff value
Hi to all,
Why in my QTableWidget with a ComboBox cell the function QTableWidget::currentRow () doesn't work ???????
the function returns the correct int value only if i select the other colums (QTableWidgetItems)
Thanks in advance
Manuel
Well, interacting directly with the combo box does not change the "current" item in the table (unless you do it programmatically).
But how i can do it ?
For example with an event filter..
Install this for all cell widgets in you table:
Qt Code:
{ { if (widget) { if (item) { setCurrentItem(item); } } } }To copy to clipboard, switch view to plain text mode
Sorry but I haven't understood very well your example
with this function i can analyze the object (for me is a certain cell ?) and an event, but which is the reason of that return (it's a recursive function ?)
Sorry for my late answer
Thanks
Bye
Unhandled events are passed to the base class's eventFilter() function, since the base class might have reimplemented eventFilter() for its own internal purposes.Originally Posted by campana
http://doc.trolltech.com/4.1/qobject.html#eventFilter
Bookmarks