Results 1 to 2 of 2

Thread: QAccessibleInterface example?

  1. #1
    Join Date
    Jun 2006
    Location
    Sweden
    Posts
    99
    Thanks
    11
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QAccessibleInterface example?

    Hi everyone!

    In my app i receive a pointer to a widget without knowing exactly what type of widget it is. However, i still would like to read and write some of its properties. As i understand it, i can use the QAccessibleInterface class to get a generic interface to the object's meta data but i can't find any examples that show how this should be done. Reading the Qt documentation it says that i can use it to "wrap all Qt widgets and objects" but the examples all use some custon widget.

    If anyone has more knowledge about the QAccessibleInterface class and would like to share it, please do so! An example would be extremely helpful.

    Thanks in advance

  2. #2
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QAccessibleInterface example?

    The QAccessible classes are used to provide accessability to disabled people using alternate interaction methods. What you want is to ask the meta object of the QWidget you have about what properties it has and their values.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.