Results 1 to 18 of 18

Thread: Role Text for the Widgets

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2008
    Posts
    32
    Thanks
    7

    Default Role Text for the Widgets

    Hi all,

    For accesibility support I need the role text of the widgets e.g for button role text should be button, for Qlabels it should be label etc. But for all the widgets it's coming as clients.

    Previously I was using Qt version 4.3.2 for the devlopment, that time role text was coming perfectly. Now I changed to 4.3.3. I am not sure it's for versioning issue or is there any thing else?

    Please help me to resolve the issue.

    Thanks and Regards
    Rakesh

  2. #2
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    517
    Thanks
    21
    Thanked 66 Times in 62 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Role Text for the Widgets

    what role text are you talking about?

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

    Default Re: Role Text for the Widgets

    Hi,

    For providing support of test automation we need to provide the accessibility support for the widgets. e.g in the attached test application there is a pushButton and a combobox.

    When you attach the exe with AccExplorer32.exe then it should give the role of the widget.
    like buttons for push button and combobox for combo etc.

    Yoc can see from the screen shot which I have attached here it's giving as client for the pushbutton but it should give as push button.

    Regards
    Rakesh
    Attached Files Attached Files

  4. #4
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    517
    Thanks
    21
    Thanked 66 Times in 62 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Role Text for the Widgets

    hmm.. client role comes only when you click on the client area...here the button and combobox are all on the client area..so i guess the pushbutton is not getting selected properly maybe..i dont think there has been any changes in accessiblity features of Qt between 4.3.2 and 4.3.3..so i guess u could try a couple of things here..

    • add a number of other widgets and see what role comes for them.
    • try putting these widgets in a frame and put the frame in the mainWindow and again see whats the outcome

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

    Default Re: Role Text for the Widgets

    Hi Amulya,

    Thanks alot for your suggestion. I have already tried that but still it's giving the role as client.

    You can see from the attahment I have added no of text labels in the frame but still it's giving it as client.

    Any further suggestion to resolve this is welcomed.

    Regards
    Rakesh
    Attached Files Attached Files

  6. #6
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    517
    Thanks
    21
    Thanked 66 Times in 62 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Role Text for the Widgets

    do you mind sending across AccExplorer? I can check it here on 4.4.3 cuz i dont see any other course of action

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

    Default Re: Role Text for the Widgets

    Hi Amulya,

    In zip format the size is 249 kb, so I can't attach here. Can you please download (AccExplorer32.exe) from http://www.microsoft.com/downloads/d...displaylang=en


    Regards
    Rakesh

  8. #8
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    517
    Thanks
    21
    Thanked 66 Times in 62 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Role Text for the Widgets

    thanks rakesh, i'll have a look into it

  9. #9
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    517
    Thanks
    21
    Thanked 66 Times in 62 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Role Text for the Widgets

    hey rakesh, i think the Qt version that you are using is not build with accessiblity support. read about QAccessible . Perhaps that will help you resolve the issue

  10. #10
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    517
    Thanks
    21
    Thanked 66 Times in 62 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Role Text for the Widgets

    Attached are the screenshots showing that in my case, its working fine:
    Attached Images Attached Images

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

    Default Re: Role Text for the Widgets

    Hi Amulya,

    Thanks a lot for your help. I think you are right. Qt version that I am using is not build with accessiblity support.

    I tried with the function QAccessible::isActive (), it's returning false to me. I think it should return true to provide accessibility at run time.

    Could you please check what this function returns in your case.

    And one more request could you please tell me what modifications do I need to do for getting the support for accessibility because I think whatever roles are specified at QAccessible::Role should come automatically for Qwidgets.

    Regards
    Rakesh

Similar Threads

  1. QLogText & QLogTable : 2 widgets to display text log
    By fcoiffie in forum Qt-based Software
    Replies: 7
    Last Post: 28th April 2019, 07:52
  2. Unhandled exception in qatomic
    By NewGuy in forum Qt Programming
    Replies: 14
    Last Post: 23rd July 2013, 09:49
  3. Upper limit on number of widgets?
    By jdiewald in forum Qt Programming
    Replies: 1
    Last Post: 29th September 2008, 23:00
  4. Match the text beetween two string
    By dreamer in forum Qt Programming
    Replies: 4
    Last Post: 20th May 2008, 14:48
  5. Editable text in QGraphicsView
    By wysota in forum Qt Programming
    Replies: 8
    Last Post: 24th February 2007, 15:30

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.