Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class QCustomMenu : public QMenu
- {
- Q_OBJECT
- public:
- QCustomMenu(QObject *parent = 0);
- void showEvent(QShowEvent *);
- };
- QCustomMenu::QCustomMenu(QObject *parent)
- {
- }
- void QCustomMenu::showEvent(QShowEvent *ev)
- {
- this->hide(); // close() also possible
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement