Forum Discussion
And what happens when you try to add your custom control?
I tried adding the custom control in 2 ways:
1. First I tried adding a custom control "TreeWidget" under Qt Controls>Tree widget. After saving changes, I try to select my control using object spy but there is no change. It still cannot highlight the items inside my control.
2. Second I tried the first approach in the below link i.e. find your custom control's base class in the object mapping window and select the "derived classes" checkbox. This enables TestComplete to find your derived classes/custom controls from that base class. However, my base class is "QWidget" and this base class is not listed in the Object Mapping window, therefore I cannot do this approach.
Please let me know if I am missing something. Thanks!
- Marsha_R3 years agoChampion Level 3
What type is your QWidget?
- sameerjade3 years agoFrequent Contributor
I am not sure about that. How can I find that out? When I select my control with the object spy, it gives QtClassName=QWidget (see attached screenshot from object spy). It does not give the type of QWidget.
I will check with my developers also.
- sameerjade3 years agoFrequent 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? - Marsha_R3 years agoChampion Level 3
Check out the first section in here about .dll files
https://support.smartbear.com/testcomplete/docs/app-testing/desktop/qt/troubleshooting.html
- sameerjade3 years agoFrequent 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.
Related Content
Recent Discussions
- 2 days agovladd1