Accessible Qt5 and screenreader [solved]



  • Hello everybody,
    I have a problem with Qt5 to accessible structure. I try to create a simple program with "Qt GUI Application".
    In this program I create a QWidget (like window) and I insert 3 controls with RAD ( Design).
    In specially : 1 textEdit , 1 QSpinBox and 1 comboBox.
    For each controls I set a property "Accessible Name" and "Description Name" in this mode:

    @ ui->comboBox->setAccessibleName("my combo box for example");
    ui->spinBox->setAccessibleName("my SpinBox for Example");
    ui->textEdit->setAccessibleName("my textEdit for Example");@

    I try to compile and verify with a screen reader ( in OS Windows I use JAWS) the accessible property but there is a soma problem: In QSpinBox when I change value with up / down arrow translate a value in a indefinite object ("Graphic XXX") .
    In comboBox when I change value with up/down arrow the jaws system not translate a value ( just when i use tab and change focus in another control).

    There is a solution for this problem in QT5? I try to search in a tutorial but i found just link like QT4 to qaccessiblewidget , but in QT5 I don't find this class to implement.
    Can I view soma example in QT5 please?? Thank you !


  • Moderators

    when you only use standard Qt widgets all you need to make sure is that the application can find "plugins\accessible\qtaccessiblewidgets.dll".
    You only need to reimplement QAccessibleWidget for custom widgets.

    Also make sure that Qt is built with accessibility support if you have built it from source.



  • Thak you for reply ...
    Yes, I did.
    I set QT in .pro file in this mode:
    QTPLUGIN += qtaccessiblewidgets
    and I added the folder accessible in same folder to my exe .
    When I compiled QT I configured with -accessibility parameter and then maked with minwg32-make.
    Unfortunatilly doesn't work all widget with screen reader . I tryed to use another PC with Jaws but it's same.
    I noted that the progressbar have a same problem.
    It's possible? Where am I going wrong?


  • Moderators

    [quote author="AleaS4" date="1380100660"]
    I set QT in .pro file in this mode:
    QTPLUGIN += qtaccessiblewidgets
    [/quote]
    That's not correct. You only need to use the QTPLUGIN variable when you want to link the plugins statically into your application.

    [quote author="AleaS4" date="1380100660"]
    and I added the folder accessible in same folder to my exe .
    [/quote]
    the plugin needs to remain in the folder "plugins/accesible/qtaccessiblewidgets.dll" relatively to your exe file! (As i wrote in my previous post!)



  • This post is deleted!

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.