Forum Discussion

teddy77777's avatar
teddy77777
Contributor
13 years ago

Can TestComplete emit QT signal?

Here is what I am trying to do.



Example:



combo["QComboBox_setCurrentIndex"](3)

combo["activated"](3)



Set current index works to change the selected item in the combo box but in order to get that change to updated in the program I need to send the activated signal.  Doing this results in an "Unspecificed Error" from TC.  



I know TC clickitem functionality will do this as well. I am finding that to be slow, and wanted to see if there is way to speed it up.  I also am trying to learn how to use the qt native properites and this seemed like a good excersize.



Is there a different way to send this signal?







1 Reply


  • Hi Ted,


     


    I suppose that you can work with the NativeQtObject.enabled and NativeQtObject.visible properties to accomplish your task. Please note that your Qt app must be compiled with debug information. Go through the "Testing Qt Applications" article for more information.