Dear all,

I have a custom scientific number spin box which works well alone. Amongst
other features, it automatically increments/decrements with the mouse
wheel, similarly to QDoubleSpinBox. The wheel event is reimplemented with:

//Handle mouse wheel event, which we use for spinning the value

void ScientificSpinBox::wheelEvent(QWheelEvent * event)

{

        stepBy(event->delta()/120);

        event->accept();

}



However, when I use this widget in a QTableView with a custom delegate, the
mouse wheel does close the editor and scroll the view. If I replace the
editor with a QDoubleSpinBox, it works well.

It seems the wheel event is not passed to the ScientificSpinBox. Why?

Thanks,

Etienne
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to