Page 1 of 1

Accessing color of QT elements

Posted: Fri Nov 25, 2016 7:26 am
by kumar.vinay888
Hi Team,

We are currently evaluating Ranorex for one of our QT based application. We are currently using Ranorex6.1.1 under trial version.

There are few QLineEdit elements in our application which expect a value in a range (min - max). If the value is changed from the default one, the text color changes to blue. If provided value is out of accepted range, the text changes to Red.

For test purpose, we have to identify the color of the text present in QLineEdit text box.

Using ranorex spy, when I track this element I get no color related properties present. Palette also comes as blank.

Is there any way I can access the color of the text present in my text box.

Please let me know if further input is required from my end.

Thanks in advance,
Vinay

Re: Accessing color of QT elements

Posted: Fri Nov 25, 2016 8:30 am
by odklizec
Hi,

If there is no color-related attribute available in spy, then your (most probably) only hope is to ask your app developers to add the accessibility attribute to the control in question. They can learn how to do this here:
http://www.ranorex.com/blog/enabling-au ... ssibility/

PS, please post a Ranorex snapshot of the problematic element.

Re: Accessing color of QT elements

Posted: Fri Nov 25, 2016 12:16 pm
by kumar.vinay888
Thanks for the quick help. I will contact the developer.

But is there any way I can access the Palette of the element without accessibility? Currently palette is showing blank when i track the element by Ranorex spy.

Re: Accessing color of QT elements

Posted: Fri Nov 25, 2016 12:53 pm
by odklizec
I'm afraid, without seeing your app, small demo app featuring mentioned palette or at least a Ranorex snapshot, there is no way for me to tell what's possible or not ;)