disable QComboBox from responding to mouse scroll event

黄江桂黄江桂
1 min read
def wheelEvent(self, e: QWheelEvent):
    e.ignore()

This way, even if QComboBox is in the parent QScrollArea, it won't affect its normal scrolling.

0
Subscribe to my newsletter

Read articles from 黄江桂 directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

黄江桂
黄江桂