Store information for screen readers at QAction
Unsolved
Qt 6
-
Hello,
I program with PyQt6.
I code a menu:menubar = self.menuBar() file_menu = menubar.addMenu('Datei') translate_action = QAction('Eingegebener Text übersetzen', self) translate_action.setShortcut(QKeySequence("Alt+t")) translate_action.triggered.connect(self.translate_text) file_menu.addAction(translate_action) exit_action = QAction('Beenden', self) exit_action.triggered.connect(self.close) file_menu.addAction(exit_action)
I would like to add text to the menu items for screen readers.
But QAction has no setAccessibleName methods
Or setAccessibleDescription .
Ask:
Is there another possibility? -
Hi,
If memory serves well, QMenu is already equipped for that so you should not need to do anything special with your QAction.