Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML accessability issue.
Qt 6.12 LTS is out! See what's new in the release blog

QML accessability issue.

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 269 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mutzev
    wrote on last edited by
    #1

    I'm trying to change the accessibility message without changing the focus.

    TextEdit {
        id: searchText
        text: "yellow"
        anchors.centerIn: parent
        focus: true
        Accessible.role: Accessible.StaticText;
        Accessible.name: searchText.text;
        Keys.onPressed: (event) => {
                            if (event.key === Qt.Key_Down){
                                Accessible.description = "red";
                                console.log("down clicked");
                            }
                            if (event.key === Qt.Key_Up){
                                Accessible.description = "blue";
                                console.log("up clicked");
                            }
    
                        }
    }
    

    in QT Widget this works.

        auto *ev =  new QAccessibleValueChangeEvent(focusedWidget, "New Message");
        QAccessible::updateAccessibility(ev);
    

    I am looking for a QML solution

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt
    • Unsolved