Hi to all.
I'm building a Mac application using QT (PySide6).
After updating XCode to 15.3.0 (Sonoma), the Accessibility Inspector stopped working correctly, it does not display the attributes of nested elements, but only the title of the window. When using XCode 14.2 (Monterey) - everything worked correctly.
main.py
from PySide6.QtGui import QGuiApplication
from PySide6.QtQml import QQmlApplicationEngine
app = QGuiApplication(sys.argv)
engine = QQmlApplicationEngine()
engine.quit.connect(app.quit)
engine.load("main.qml")
sys.exit(app.exec())
main.qml
import QtQuick.Controls
ApplicationWindow {
visible: true
width: 600
height: 500
title: "MyApp"
Rectangle {
anchors.fill: parent
Text {
id: my_text
anchors.centerIn: parent
text: "My APP"
font.pixelSize: 45
Accessible.role: Accessible.StaticText
Accessible.name: my_text.text
Accessible.description: "my app text"
}
Accessible.role: Accessible.StaticText
Accessible.name: "Rectagle"
Accessible.description: "my app rectangle"
}
}
The code is the same for both applications
On Monterey i can select any region with accessible
On Sonoma - only title
Does anyone know a solution?
Maybe someone has a similar problem?