Markus
18th March 2014, 19:32
Hello all,
I am using a QTablewidget with different widgets in different columns. The trouble begins when there are more rows to fit the view and you need to scroll. One of the columns is holding a QComboBox and when you use the scroll wheel and your mouse happens to be over a column with a QComboBox you scroll the QComboBox instead of the table view. I tried setting:
combbbox->setFocusPolicy(Qt::TabFocus);
but it does not help.
Any suggestion of how to make it react to a scroll wheel only when it already has focus?
Markus
I am using a QTablewidget with different widgets in different columns. The trouble begins when there are more rows to fit the view and you need to scroll. One of the columns is holding a QComboBox and when you use the scroll wheel and your mouse happens to be over a column with a QComboBox you scroll the QComboBox instead of the table view. I tried setting:
combbbox->setFocusPolicy(Qt::TabFocus);
but it does not help.
Any suggestion of how to make it react to a scroll wheel only when it already has focus?
Markus