--0000000000002c870505b8c889fa Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Once you have the main QAction, it has a menu() method, which in turn has an actions() method. So for instance: bar =3D foo->menu()->actions().at(0). Of course with much more logic to check that every item exists and not hardcoding the position, but I hope you get the point. El mi=C3=A9., 13 ene. 2021 14:24, Thomas Baumgart escri= bi=C3=B3: > On Mittwoch, 13. Januar 2021 11:50:50 CET Tobias Leupold wrote: > > > Hi Thomas! > > > > Thanks for this info, but this is about context menus ... I want to > access a > > submenu inside a menu of the main menu bar ... such as the "File" --> > > "Recently used" menu of KWrite or such > > Ooops, my bad, or as we say in German "Thema verfehlt, setzen, sechs" :) > > -- > > Regards > > Thomas Baumgart > > https://www.signal.org/ Signal, the better WhatsApp > ------------------------------------------------------------- > The shortest words, namely yes and no, > require the most thoughts. -- Pythagoras of Samos > ------------------------------------------------------------- > --0000000000002c870505b8c889fa Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Once you have the main QAction, it has a menu() method, w= hich in turn has an actions() method.

So for instance:
=C2=A0bar =3D foo->men= u()->actions().at(0).

Of course with much more logic to check that every item exists and not har= dcoding the position, but I hope you get the point.

El mi=C3=A9., 13 e= ne. 2021 14:24, Thomas Baumgart <th= b@net-bembel.de> escribi=C3=B3:
On Mittwoch, 13. Januar 2021 11:50:50 CET Tobias Leupold wrote:

> Hi Thomas!
>
> Thanks for this info, but this is about context menus ... I want to ac= cess a
> submenu inside a menu of the main menu bar ... such as the "File&= quot; -->
> "Recently used" menu of KWrite or such

Ooops, my bad, or as we say in German "Thema verfehlt, setzen, sechs&q= uot; :)

--

Regards

Thomas Baumgart

https://www.signal.org/=C2=A0 =C2=A0 =C2=A0 =C2=A0Signal, the = better WhatsApp
-------------------------------------------------------------
The shortest words, namely yes and no,
require the most thoughts. -- Pythagoras of Samos
-------------------------------------------------------------
--0000000000002c870505b8c889fa--