macOS - how get the native element ID of a widget?
-
I need to get the native element ID of a widget on macOS in order to pass it to the accessibility framework, and it's not obvious how to do it with Qt.
There is one example of Qt itself doing this, though it seems to use the event ID in place of the widget ID?
-
I need to get the native element ID of a widget on macOS in order to pass it to the accessibility framework, and it's not obvious how to do it with Qt.
There is one example of Qt itself doing this, though it seems to use the event ID in place of the widget ID?
@Vadi2
I know nothing about MacOS or its "native element ID`s, but WId QWidget::winId() const is presumably what you are looking for. Maybe you can use thatQMacAccessibilityElement *element = [QMacAccessibilityElement elementWithId: event->uniqueId()];
against a
widget->winId()
?