Forum Discussion

sameerjade's avatar
sameerjade
Frequent Contributor
8 years ago

Verifying cell values of Qt table widgets

Hello,

 

I am trying to verify the cell values of a Qt table widget. When I hover the object spy over the table, it only highlights the table but not the individual cells and shows the ChildCount = 0. I checked with our developers and this is a standard Qt table. Is there a way that TestComplete can identify cells inside of a Qt table? I did add the class name of the table under Object Mapping>Qt Controls>Table widget as mentioned here.

 

Also, is there a workaround to verify the cell values in the table? I am able to click the cells using

"TestObj.ClickCell(RowColumnShift)" but not able to verify the cell values itself.

 

 

Thank you!

 

Sameer

  • Try using wValue property.

     

    As for the ChildCount property, it is a standard property for all controls, not just Qt ones, so it will not always show exact child count for Qt controls.

  • karkadil's avatar
    karkadil
    Valued Contributor

    Try using wValue property.

     

    As for the ChildCount property, it is a standard property for all controls, not just Qt ones, so it will not always show exact child count for Qt controls.