from __future__ import annotations from PySide6.QtWidgets import QComboBox class NoWheelComboBox(QComboBox): def wheelEvent(self, event) -> None: event.accept()