[Qt-interest] How to close a QMenu programmatically?

Kustaa Nyholm Kustaa.Nyholm at planmeca.com
Mon Jul 5 13:40:21 CEST 2010


Hi,

I've have a popup menu that I show with QMenu::popup.

My problem is that I need to close the menu from code,
(as opposed to in response to a user click).

QMenu::hide() does not seem to do the trick.

Is there a way to close a QMenu programmatically?

br Kusti






More information about the Qt-interest-old mailing list