Ranorex Studio supports out-of-the-box test automation of Qt applications.
Supported Qt versions:
Only dynamically linked Qt applications are supported.
There is no need for manual instrumentation, Ranorex Studio will do it automatically.
If you don’t want to use the default Ranorex Studio Qt object recognition, you can revert back to MSAA (Microsoft Active Accessibility) and Qt Accessibility recognition.
To do so:
In Ranorex Studio, go to Settings > Plugins > Qt.
Set Use Qt legacy automation mode to True.
You also need to ensure your Qt application supports MSAA, or Ranorex Studio won’t be able to identify UI elements in it. To do so, you need to load the Qt accessibility plugin in the Qt application under test and ship it with it. The accessibility plugin is included in the Qt SDK.
Go to the installation folder of the Qt SDK and locate the folder named accessible. If you don’t have access to the Qt SDK, contact the developer of your application and ask them to send you the accessible folder.
Copy the accessible folder and all its contents to the plugins folder in your application’s directory (e.g. Program FilesYourApplicationplugins).
In the root directory of your application (e.g. Program FilesYourApplication), create a new file called qt.conf and insert the following code. If the file already exists, simply add the following code to it.
Plugins = plugins
This will ensure Ranorex Studio can identify UI elements correctly, as shown in the two screenshots below: