How to set the accessible QActions name contained in QMenu

I am trying to set the available properties of QMenu sub-items. I can set an available property of the parent menu using setAccessibleName () since it inherits from QWidget. Unfortunately, the QActions you add to the menu are not child classes of widgets; they inherit QObject directly.

Is there a way to set an accessible name for a menu item?

thank

+3
source share
1 answer

Qt, , QAccessibleInterface. QObject, QAccessibleObject. - , .

, , QAccessibleObject , . , childCount() 0 role(int i) QAccessible::MenuItem.

+1

Source: https://habr.com/ru/post/1761411/


All Articles