Results 1 to 3 of 3

Thread: Accesiblity for Widgets

  1. #1
    Join Date
    Sep 2008
    Posts
    32
    Thanks
    7

    Default Accesiblity for Widgets

    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.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Accesiblity for Widgets

    Take at look at Qt Quarterly. There is an article there about accessibility.

    http://doc.trolltech.com/qq/qq24-accessibility.html

  3. #3
    Join Date
    Sep 2008
    Posts
    32
    Thanks
    7

    Default Re: Accesiblity for Widgets

    Hi,

    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.

    Regards
    Rakesh

Tags for this Thread

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.