<div dir="auto">Once you have the main QAction, it has a menu() method, which in turn has an actions() method.<div dir="auto"><br></div><div dir="auto">So for instance:</div><div dir="auto"> bar = foo->menu()->actions().at(0).</div><div dir="auto"><br></div><div dir="auto">Of course with much more logic to check that every item exists and not hardcoding the position, but I hope you get the point.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El mié., 13 ene. 2021 14:24, Thomas Baumgart <<a href="mailto:thb@net-bembel.de">thb@net-bembel.de</a>> escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mittwoch, 13. Januar 2021 11:50:50 CET Tobias Leupold wrote:<br>
<br>
> Hi Thomas!<br>
> <br>
> Thanks for this info, but this is about context menus ... I want to access a<br>
> submenu inside a menu of the main menu bar ... such as the "File" --><br>
> "Recently used" menu of KWrite or such<br>
<br>
Ooops, my bad, or as we say in German "Thema verfehlt, setzen, sechs" :)<br>
<br>
-- <br>
<br>
Regards<br>
<br>
Thomas Baumgart<br>
<br>
<a href="https://www.signal.org/" rel="noreferrer noreferrer" target="_blank">https://www.signal.org/</a> Signal, the better WhatsApp<br>
-------------------------------------------------------------<br>
The shortest words, namely yes and no,<br>
require the most thoughts. -- Pythagoras of Samos<br>
-------------------------------------------------------------<br>
</blockquote></div>