Ask a Question

How to add and identify custom Qt controls

sameerjade
Frequent Contributor

How to add and identify custom Qt controls

Hello,

I am using TestComplete to test a desktop application. Object spy catches an entire box but no objects inside of it. It is Qt based. I already tried a a couple of ways but they are not working.

 

Object spy returns this with the box selection: 

Sys.Process("Abc").....QtObject("TreeView").QtObject("qt_scrollarea_viewport")

 

First I tried adding a custom Qt control in my projects object mapping page (based on the below link). After adding the custom control and saving, object spy still can't find the inside objects.
https://support.smartbear.com/testcomplete/docs/general-info/supported-technologies/controls/qt.html

 

Then I tried using the Text Recognition Technology in TestComplete (based on the below link) by calling the TextObject method but it looks like It must use the class name returned by the WndClass property of the object and since my control is Qt object it only has QtClass and therefore it is not able to invoke the TextObject method. 

https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/text-recognition/...

 

Any ideas how we can do this for Qt controls? Thanks!

13 REPLIES 13
sameerjade
Frequent Contributor

After talking with our developer, I was told:


We have a custom widget "TreeWidget" that is derived from "QWidget" (base class). And that has a custom widget member "QTreeWidget" that is derived from QTreeView (base class).


Does this help?

Check out the first section in here about .dll files

 

https://support.smartbear.com/testcomplete/docs/app-testing/desktop/qt/troubleshooting.html

 


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
sameerjade
Frequent Contributor

Yes, I have verified that our application contains all those 3 dll files (Qt5Gui.dll, Qt5Core.dll, Qt5Widgets.dll) in their original names. They are not re-named.

@AlexKaras Any ideas for this?


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
cancel
Showing results for 
Search instead for 
Did you mean: