views:

29

answers:

1

I have some embedded QComboBox in a QTableView. To make them show by default I made those indexes "persistent editor". But now every time I do a mouse scroll on top them they break my current table selection.

So basically how can I disable mouse scrolling of QComboBox?

+2  A: 

You should be able to disable mouse wheel scroll by installing eventFilter on your QComboBox and ignore the events generated by mouse wheel, or subclass QComboBox and redefine wheelEvent to do nothing.

rebus
I also changed the combobox's focus policy to click. This helped too. Thanks!
Alberto Toglia

related questions