Ask a Question

Verifying cell values of Qt table widgets

SOLVED
sameerjade
Frequent Contributor

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

1 ACCEPTED SOLUTION

Accepted Solutions
karkadil
Valued Contributor

Re: Verifying cell values of Qt table widgets

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.

View solution in original post

2 REPLIES 2
karkadil
Valued Contributor

Re: Verifying cell values of Qt table widgets

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.

View solution in original post

sameerjade
Frequent Contributor

Re: Verifying cell values of Qt table widgets

Thank you. wValue works!

cancel
Showing results for 
Search instead for 
Did you mean: