Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved Providing a QWidget's native accessibility node for its parent widget.

    General and Desktop
    2
    3
    663
    Loading More Posts
    • 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
      miku last edited by

      My custom widget has a native implementation for accessibility node. However, I couldn't find a way to provide the native node to its parent. Please help suggest whether there is a way for a QWidget to provide its native accessibility node to its parent?

      raven-worx 1 Reply Last reply Reply Quote 0
      • raven-worx
        raven-worx Moderators @miku last edited by

        @miku said:

        However, I couldn't find a way to provide the native node to its parent. Please help suggest whether there is a way for a QWidget to provide its native accessibility node to its parent?

        I am not quite sure what exactly you are trying to achieve?
        There is a static method available (QAccessible::queryAccessibleInterface()) to get the accessible interface of an given object.

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        1 Reply Last reply Reply Quote 0
        • M
          miku last edited by

          Sorry for unclear question. Let me clarify my question a little bit more. I'm working with Window accessibility specifically and prefer to implement my own IAccessible for my QWidget. I would like to only override the accessibility part of QWidget. May I ask if there is a way to control IAccessible object that is created by a QWidget? I was trying to handle nativeEvent WM_GETOBJECT but the IAccessible object I provided through nativeEvent function was not included in the application accessibility tree. Thanks!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post