[PyQt] question about QMenu `triggered' event

Ville M. Vainio vivainio at gmail.com
Thu Dec 17 11:58:07 GMT 2009

On Fri, May 29, 2009 at 3:13 PM, Tony Willis <twillis449 at gmail.com> wrote:

> According to the Qt QMenu documentation, a QMenu should be capable
> of generating its own 'triggered' event when any action that
> has been added to the menu generates such an event. However, while
> I can successfully connect 'triggered' events from individual actions
> in a menu to separate callbacks, I can't seem to get a QMenu
> to produce a global 'triggered' event. The appended script
> illustrates the problem. Can someone tell me what I'm doing wrong?

Did you try hooking on triggered(QAction) of the QMenuBar also?
Ville M. Vainio

More information about the PyQt mailing list