Python wrapping is done fully automatically, by CMake macros (at the lowest level, it is implemented in ctkMacroWrapPythonQt
in CTK library). As long as you build the library using Slicer macros, specify WRAP_PYTHONQT
flag, and the Python wrapper can parse your header file, all your Qt classes will be automatically available in Python.
1 Like