Popup menus are not correctly exported. The shipped manual testcase of qaccessibilityclient lists all running applications as children of any popup menu instead of the actual entries. Reproducible: Always Tip: For debugging this it could be helpful to create a separate X pointer so that the opened popup menu can remain open while investigating the problem (https://wiki.archlinux.org/index.php/Multi-pointer_X).
As far as I can tell, pure Qt and Gnome applications work. I currently suspect that the KDE menus are inconsistent in their hierarchy. The QActions seem to be children of the application's main window itself instead of the menu. This leads to parent and indexOfChild not working correctly. It may be that the bridge will have to fake it though, if there is no proper fix.
Thank you for the bug report. As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists. If this bug is no longer persisting or relevant please change the status to resolved.