#ifndef ECOMBOBOX_H #define ECOMBOBOX_H #include class QWidget; class QWheelEvent; namespace pst { /// @brief 自定义的下拉列表 class EComboBox : public QComboBox { Q_OBJECT public: explicit EComboBox(QWidget* parent = nullptr); private: /// @brief 重写鼠标滚动事件 void wheelEvent(QWheelEvent* event) override; }; } #endif