PDA

View Full Version : QAccessibleInterface example?



TheRonin
13th November 2006, 16:46
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

e8johan
15th November 2006, 07:08
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.