I've been playing with FreeCAD for a couple of days now when i finally got it working, and indeed it looks very promising and interesting project. Now i'm wondering what are the possibilities to embed a model view and other GUI features to another QT application. It would be a superior feature to create little specific applications with all the functionality FreeCAD is providing, and to enchance functionality even more with numpy/scipy/matplotlib/etc. I guess it's possible to use FreeCAD's non-gui features throught Pivy with Open Inventor scene syntax to create a canvas to QT app with model view and some little controllers, but that doesn't feel to be very practical solution. Is it possible to create QWidget with a canvas and embed a model view to it somehow..? Basicly it should be something like:
Code: Select all
class MyApp(QWidget):
def __init__(self, parent=None):
super(Form, self).__init__(parent)
self.lineedit = QLineEdit("foo")
self.myfreecadcanvas = FreeCADGui.ActiveDocument().View # Here the magic happens
layout = QVBoxLayout()
layout.addWidget(self.lineedit)
layout.addWidget(self.myfreecadcanvas)
self.setLayout(layout)
...
Jukka Aho