I do automation and currently automating an application made with QT (C++). I use Squish to do this using Python scripting language.
Can someone explain me exactly how a Python variable can be assigned a C++ Object?
I do automation and currently automating an application made with QT (C++). I use Squish to do this using Python scripting language.
Can someone explain me exactly how a Python variable can be assigned a C++ Object?
Do you need to refer C++ built-in types (int, long, char, wchar_t, etc.) and arrays in Python code? If so you need to use ctypes Python package. Here is an example of calling C++ dll function from Python. If you need to send Window message (like WM_CLICK) take a look at ctypes.Structure class. There are some examples of C structures declared in Python code.
EDIT: Currently I know 2 open source projects about QT GUI automation.
Also it's possible to build and run QT app with accessibility features for Windows UIA and Linux AT-SPI.
pyQT and PySide packages or Windows UI Automation API (which is hard to use from Python, and it's complicated to learn - and not cross-platform). If this is a subject, let's talk about UI object representation (namely wrapper) that can contain some info about UI control and interact with it somehow. Such info format and interaction technologies highly depends on a platform: OS, GUI app framework (QT, WPF, MFC, wxWidgets or smth like that), having custom controls etc.