When You Need to Prepare Qt Applications for Testing

Applies to TestLeft 15.40, last modified on March 17, 2022

To test your Qt application successfully, do not rename or modify the following modules of the Qt application:

  • QtNGui.dll

  • QtNCore.dll

  • QtNWidgets.dll

Where N is the used Qt version: 5 or 6.

TestLeft uses these libraries to recognize Qt applications and their objects.

To access protected and private properties and methods of your Qt application from tests, compile the application with debug information. See —

Preparing Visual C++ 8.0 - 12.0, 14.0 - 16.0 Applications (Unmanaged Code) for Testing

Note: By default, you can access all public methods of Qt objects from your tests.

However, you cannot access all public properties of a Qt object by default. You can access only those properties that are listed in meta-information of the object and have standard QVariant-compatible data types.

See Also

Preparing Qt Applications for Testing

Highlight search results