View Full Version : Accesiblity for Widgets

26th September 2008, 08:05
:confused: Hello,

I need my widgets to inherit from qAccesibleWidget for the purpose of test automation with STAS.
Could any one please help me as to what all is required to provide the required accesiblity to my widgets(eg.QComboBox, QLabel etc).Do i need to implement the ChildAt(),childCount()..functions ??Or will they be provided by AccesibleWidget?

Who will use these functions?
How to expose these functions to the (MS Windows)Accesiblity Explorer tool?

Thanks in Advance.

26th September 2008, 10:57
Take at look at Qt Quarterly. There is an article there about accessibility.


23rd October 2008, 07:31

Thanks for the reply. I have some doubts in that article. There is a function like below

AnalogClock *clock() const
{ return qobject_cast<AnalogClock *>(widget()); }

How to use this pointer in the AnalogClock class.

As per my understanding we need to derive the AnalogClock class from QWidget for creating the AnalogClock.

Then for accessibility we have to implement AccessibleClock class as given in the article which is derived from QAccessibleWidget.

Then how to get these accessibilty informations in the analogClock class.

I tried to construct AccessibleClock object in the main.cpp but it's giving unhandled exception.

Please let me know how to implement it.