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

Malyushytsky, Alex alex at wai.com
Wed Jul 7 01:24:27 CEST 2010


Have you tried  close() ?

Alex

-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Kustaa Nyholm
Sent: Monday, July 05, 2010 4:40 AM
To: QT Interest List
Subject: [Qt-interest] How to close a QMenu programmatically?

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



_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest


---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.

“This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you.”

“Please consider our environment before printing this email.”




More information about the Qt-interest-old mailing list