Using certain Qt functionalities nowadays requires subclassing relevant Qt classes and overriding the methods there in order to make your own painting or UI logic, especially for mouse + keyboard. I'm not fully sure, but in the FreeCAD codebase this kind of functionality requires using C++, because the FreeCAD core is coded in C++. If everything would have been coded with Python from the start, that wouldn't be a problem, but currently you can't do the subclassing with Python, because there are no Python classes in the base code, just C++. Some of the functionality has been exported to Python, but I guess not everything. Thus, making a similar 2D paper and 2D UI logic as is present in TechDraw and attaching it to FreeCAD might be difficult.tobiasfalk wrote: ↑Fri Jan 13, 2023 8:50 am I have looked a bit in to FreeCAD Workbench development and if I understand it correctly, the main Adwanteg of using C++ for it would be the speed, but I wodered, would be there other benefites to developing, a Workbensch like this, in C++.
I'm not 100 % sure, though, because there might be some way to steal the 'focus' and use 100 % Python drawing for the Workbench canvas. So, doing everything in Python is certainly not a problem, but attaching it cleanly to FreeCAD might be.