ContributionsMost RecentMost LikesSolutionsRe: how to get background color of QT component Thanks for your replay. I use the latest TC (Version: 12.60.5545.7 x64) , this version default supports QT5.0, so I replace QT module for supporting QT 4.8 Is there any way or workaround to get the background color that I want? how to get background color of QT component Hi All, I use TestComplete toautomated QT desktopapplication. In my case,I need to get background color of Qt component, but after check all properties and methods of the target component, I can not get the color. Any suggestions would be appreciated.Thanks in advance. BTW, this questiondid not work for me, I application developed by Qt 4.8, and the className of QT component is QTableWidget, I want to get color of one row Regards, Srikanth Re: the value of variable losses Adding OnStartTest Event for initializing my global variable to fix this issue Re: script hung by a popup (QT descktop application) Hi AlexKaras, Thanks for your answser. FIx my issue by usingUI actions method. Re: script hung by a popup (QT descktop application) Hi AlexKaras, I triedRunner.CallObjectMethodAsync to fix my issue, but it did not work. fake code as below: //after excute below code, popup a new dialog tabControl.setCurrentIndex(index); //this line can not excute unless i close popup Log.Message('done') option 1: endless loop CallResultObj = Runner.CallObjectMethodAsync(tabControl, "setCurrentIndex", index); //cause endless loop, popup dialog never displays while(! CallResultObj.Completed) { aqUtils.delay(1000); } Log.Message('done') option 2: same as before //after excute this line, scipt blocked, can not excute Runner.CallObjectMethodAsync. tabControl.setCurrentIndex(2); CallResultObj = Runner.CallObjectMethodAsync(popupControl, "Close"); while(! CallResultObj.Completed) { aqUtils.delay(1000); } Log.Message('done') Please fix me, How to change my script? Regards, Jack Re: the value of variable losses Hi AlexKaras, Thank you for your response. Idid not describ my question clearly. I don not usevariables object in my script, I just create avariable(it is an object) in a script, init it at first , then other scripts use its value. Fake code: script1 let obj = {}; function initObj() { obj.xxx = yyy; .... } function getObj() { return obj; } module.exports.initObj= initObj; module.exports.getObj = getObj; other sctipts var script1 = require("script1"); function test() { let obj = script1.getObj; ... } The question is once one script meet exception stopped by Runner.stop(true), those script behind it can not get the value of obj. Why can not I get its value? Regards, Jack script hung by a popup (QT descktop application) the scenario is my script swich a QT tab component after it switch popup a QT window, then my sctip is hung by popup, unless I manually close it, my sctipt run to next line. Is there any way to access the pop or fire a event or somethong I can handle this? Thanks Solvedthe value of variable losses I need some help, In my script I use Runner.stop(true) to exit current script if something goes wrong, but the value of a previous variable which should be used in behiend script become empty. (I debugged the variable losses). My question is how I canreserve its value for using in behiend sctipts. Thanks Solved