|
From: | Gubinelli Massimiliano |
Subject: | Re: [Texmacs-dev] Problem in extracting popup menu from the QAction |
Date: | Wed, 25 Nov 2009 10:39:24 +0100 |
Hi, On 25 nov. 09, at 06:38, siva prasad wrote: Hi all, most of the TeXmacs menus are "lazy", i.e. they are build only when needed. So if you look at the submenu actions you will obtain 0. You need to dynamically cast the QMenu to QTMLazyMenu and use force() to build the list of actions before inspecting the menu. Keep in mind that menu customization is done in scheme so I do not guarantee that if you programmatically change the menus in the C++ code this will work. best massimiliano thank you in advance, |
[Prev in Thread] | Current Thread | [Next in Thread] |