Search found 14 matches
- Tue Dec 29, 2009 1:08 pm
- Forum: Open discussion
- Topic: Embedding a view to another (QT) application?
- Replies: 38
- Views: 11568
Re: Embedding a view to another (QT) application?
Super. Now it works like charm. Here's another example of embedding FreeCAD to Qt # -*- coding: utf-8 -*- """ Created on Tue Dec 29 08:49:32 2009 @author: - """ #!/usr/bin/env python import sys from PyQt4 import QtCore, QtGui from pivy import quarter as Quarter import F...
- Tue Dec 29, 2009 7:39 am
- Forum: Install / Compile
- Topic: Compile on Mac issues
- Replies: 29
- Views: 16273
Re: Compile on Mac issues
Hmm. Now it compiles on SWIG 1.3.40 too without any problems. I guess the problem was in my own system configuration.
- Mon Dec 28, 2009 1:15 pm
- Forum: Open discussion
- Topic: Embedding a view to another (QT) application?
- Replies: 38
- Views: 11568
Re: Embedding a view to another (QT) application?
That's great news to hear! If FreeCAD project truly want's to separate GUI and App to different parts that can be used separately AND effectively, they both should give full advantage of using them in different projects. That's the power of design. I think the point is still that when the user needs...
- Sun Dec 27, 2009 3:15 pm
- Forum: Install / Compile
- Topic: Compile on Mac issues
- Replies: 29
- Views: 16273
Re: Compile on Mac issues
It looks like compiling fails with Swig-1.3.40. On Swig-1.3.39 there's no problems. libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../src -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -I/usr/local/include -I/usr/local/include/boost -DHAVE_SWIG=1 -D_...
- Sun Dec 27, 2009 3:11 pm
- Forum: Open discussion
- Topic: Embedding a view to another (QT) application?
- Replies: 38
- Views: 11568
Re: Embedding a view to another (QT) application?
Basicly it's one kind of syntax to define object shapes, so is that more FreeCAD than FreeCADGui feature? I get AssertionError when trying that code pasted: Assertion failed: (parentType != Base::Type::badType()), function initSubclass, file BaseClass.cpp, line 97. As said, i think that starting Fre...
- Sun Dec 27, 2009 12:08 pm
- Forum: Open discussion
- Topic: Embedding a view to another (QT) application?
- Replies: 38
- Views: 11568
Re: Embedding a view to another (QT) application?
Hi, Yes, it's starts to look that using FreeCADGui isn't at this point counted as possibility. That last approach is worth of trying. Is it possible to gain that scenegraph without importing GUI part of application at all? addObject launches GUI and starts the mainApp loop, i think that's the actual...
- Sat Dec 26, 2009 4:24 pm
- Forum: Open discussion
- Topic: Embedding a view to another (QT) application?
- Replies: 38
- Views: 11568
Re: Embedding a view to another (QT) application?
Hi Werner I did try to find that 3d view widget, but haven't found anything relevant yet that could be used in PyQt. And yes, my Qt app will be written in Python with PyQt. I'm not very interested about modifying FreeCADGui source code. Does the Python methods to get 3d view QWidget or relevant QObj...
- Sat Dec 26, 2009 12:40 am
- Forum: Open discussion
- Topic: Embedding a view to another (QT) application?
- Replies: 38
- Views: 11568
Re: Embedding a view to another (QT) application?
Meanwhile i did do some studying. I succesfully got Coin scenegraph object in terminal with normal Python interpreter. It wasn't even hard. FreeCAD rocks! from FreeCAD import Part import sys import FreeCAD import FreeCADGui from PyQt4 import QtGui,QtCore qApp = QtGui.QApplication(sys.argv) # QApplic...
- Fri Dec 25, 2009 6:57 pm
- Forum: Open discussion
- Topic: Embedding a view to another (QT) application?
- Replies: 38
- Views: 11568
Re: Embedding a view to another (QT) application?
I think that there must be some kind of layer to 3d view that inherits from QApplication so that Qt event handling etc. works. I'm not a Qt professional and just started experimenting it couple weeks ago, but I thought that because FreeCAD's GUI is already made with Qt, that kind of layer is already...
- Fri Dec 25, 2009 6:15 pm
- Forum: Open discussion
- Topic: Embedding a view to another (QT) application?
- Replies: 38
- Views: 11568
Embedding a view to another (QT) application?
Hello, 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 featur...