So I have looked a bit more closely and I still can't figure out what is going on. Here's the short of it:

1. I can import qt just fine. I can use the qApp object to resize, hide, etc, the main window

2.  I can create QObjects with no parents.  No problems.
3.  I can create QObjects with qApp.mainWidget() as the parent.
4.  If I try to create by:
w=QObject()
w2=QObject(w)

it crashes on the NEXT time through my python interpreter.
5. If I try to create a defaultly constructed QWidget (or QDockWindow, probably others), it crashes on the NEXT time through my python interpreter.


Any ideas folks?


Kevin Schmidt wrote:
I was having trouble, but thats gone now. Turns out that I can call QT commands, but any subsequent commands crash it. It may be my interpreter embedding - I'll have to look further.

Kevin

Myddrin wrote:

Is libqtc compilied against the same version of QT as you're app is compiled with. I had a similar problem when I was importing a libqtc compiled against qt 3.1.2, but my main app was a qt 3.3.2 app.

Just a thought.

On Friday 28 May 2004 5:14 pm, Kevin Schmidt wrote:


I am running a QT C++ application with an embedded python interpreter.
I can import PyQt and access existing objects thought the qApp variable.
 However, I can't seem to construct anything - my app quits.  I don't
actually get a message (its lost in the embeddedness), but it seems to
be the "QPaintDevice: Must construct a QApplication before a
QPaintDevice" problem.  Not sure though.

Any suggestions?

_______________________________________________
PyKDE mailing list [EMAIL PROTECTED]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde




_______________________________________________ PyKDE mailing list [EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to