Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Combobox class */
- class HoverableComboBox : public QComboBox
- {
- Q_OBJECT
- public:
- HoverableComboBox() { this->installEventFilter(this); }
- /*~HoverableComboBox();*/
- signals:
- void opened();
- void closed();
- private:
- public:
- void hidePopup()
- {
- QComboBox::hidePopup();
- emit closed();
- }
- void showPopup()
- {
- QComboBox::showPopup();
- emit opened();
- }
- void paintEvent(QPaintEvent * e)
- {
- QComboBox::paintEvent(e);
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement