Forum Discussion

Jack_meng's avatar
Jack_meng
Occasional Contributor
6 years ago

how to get background color of QT component

Hi All,

I use TestComplete to automated QT desktop application.  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 question did 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

2 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    What version of TC are you using?  Based upon the documentation, TC 12.x doesn't support Qt 4.8.  To work with the earlier version, you need to download the separate extension but, doing so, you can't then test Qt 5.0.  This COULD be your problem.

    • Jack_meng's avatar
      Jack_meng
      Occasional Contributor

      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?