Markus
6th August 2010, 17:22
Dear All,
I want do disable the wheelEvent for QComboBox, QDoubleSpinBox, and QSpinBox. (They live inside a QWidget which itself lies in a QFrame).
I tried setFocusPolicy(Qt::ClickFocus or even Qt::NoFocus) but it does not make a difference. As soon as I am with the mouse over those objects the wheelEvent will manipulate them.
Any idea how to stop the wheelEvent without subclassing all the classes?
Thanks
Markus
I want do disable the wheelEvent for QComboBox, QDoubleSpinBox, and QSpinBox. (They live inside a QWidget which itself lies in a QFrame).
I tried setFocusPolicy(Qt::ClickFocus or even Qt::NoFocus) but it does not make a difference. As soon as I am with the mouse over those objects the wheelEvent will manipulate them.
Any idea how to stop the wheelEvent without subclassing all the classes?
Thanks
Markus