Page 1 of 1

Qt Scrollbar & QObject Detection Issues

Posted: Mon May 03, 2021 10:39 am
by gce
Hi I am automating a QT Desktop Application (Qt 5.15) with Ranorex 9.4.1.
We have a scrollbar and the scrollbar have buttons for up and down.
But in spy I am not able to get them. Is there any possibility in the settings to get these buttons?

Another Question:
I have a cointainer where I have 3 QObjects. Is there a possibility to capture them?

Thank you in advance!

Re: Qt Scrollbar & QObject Detection Issues

Posted: Mon May 03, 2021 6:52 pm
by odklizec
Hi,

I'm afraid, it's impossible to tell what's possible without seeing, at very least, a Ranorex snapshot (NOT screenshot) of the app in question. Could you please create one and post it here? Also, please try to track the scroll bar with most recent Ranorex 9.5.

Re: Qt Scrollbar & QObject Detection Issues

Posted: Tue May 04, 2021 6:54 am
by gce
The snapshot has over 15k elemets in it and for security reasons I am not allowed to post it.
But even with ranorex 9.5. there is still a problem with the scrollbar.
I hope that someone from the Ranorex Support team can help. It's the standard QScrollbar.

Re: Qt Scrollbar & QObject Detection Issues

Posted: Tue May 04, 2021 7:08 am
by odklizec
Hi,

What version of QT is the app built with? Also, if it's a standard QT scrollbar, could you please ask your developers to prepare a small sample app, featuring given scrollbars? Unfortunately, even support will request access to the app under test, snapshot or, at very least, a small sample app, featuring the scroll bars.

And finally, if you expect help from Ranorex support, you should rather contact them directly, via support form available here:
https://www.ranorex.com/support-query/

BTW, have you tried to switch available QT options ( to their opposite state) in Ranorex settings?

Re: Qt Scrollbar & QObject Detection Issues

Posted: Tue May 04, 2021 8:07 am
by gce
It is built with qt 5.15.2
what do you mean with switch available qt options?

Re: Qt Scrollbar & QObject Detection Issues

Posted: Tue May 04, 2021 8:14 am
by odklizec
Hi,

Go to Spy settings and try to set "Filtering" option to "False" and if it does not help, then also "QT legacy" option to "True".
QTSettings.png

Re: Qt Scrollbar & QObject Detection Issues

Posted: Tue May 04, 2021 8:46 am
by gce
Thank you, I tried this before but it also doesn't work.
A little correction: we are not using the standard QScrollbar, we have our own scrollbar inheriting from it.

Re: Qt Scrollbar & QObject Detection Issues

Posted: Tue May 04, 2021 8:54 am
by odklizec
Hi,

And that could the the problem. So please, ask your devs to prepare a small sample app, featuring your custom scrolls and post it here or even better, create a support ticket. Apparently, the scrolls are not compatible with Ranorex implementation of QT recognition, which is supposed to work with standard UI elements, but may have a problem with custom ones.

Just for fun, please try to track the scrollbars with MS Inspect or newer Accessibility Insights app...
https://docs.microsoft.com/en-us/window ... ct-objects
If these apps are able to recognize the scrollbars correctly, then it's definitely something Ranorex folks should look at. But I guess these apps will fail to recognize these custom scrolls as well?

Re: Qt Scrollbar & QObject Detection Issues

Posted: Mon May 31, 2021 9:18 am
by gce
Thank you for your efforts. After writing to the support (our company has a premium support) we didn't get any reply now for over 3 weeks. Will see if they will answer.

Re: Qt Scrollbar & QObject Detection Issues

Posted: Mon May 31, 2021 9:24 am
by odklizec
Hi,

It's sad to hear you've not received an answer yet. I will try to "push" your matter ;)