problems Panda3D with Qt


I make a simulator with panda3D, but I used Qt to the network.
But, my program don’t stop, if I quit Qt’s window, 2 windows quit but my program always works

I make a test and I discovered that :

import direct.directbase.DirectStart
import sys
from PyQt4 import QtNetwork, QtGui, QtCore

app = QtGui.QApplication(sys.argv)

window = QtGui.QMainWindow()


#QtCore.QObject.connect(a, QtCore.SIGNAL("timeout()"), taskMgr.step)

this code don’t work, I think the problem is due to the run of Panda3D and the run of Qt, but I don’t know to repair my problem.


PS : sorry for my bad english, I am French

may I ask you why are you using Qt for the net code?

I used Qt for my network application. This simulator is commanding by a remote who is created with Qt

I discoverd my application work correctly in a Gentoo distrib but no in a Arch or Kunbuntu distribution even if the 3 distributions have KDE

with ‘commanding by remote’ do you mean controlled by a remote application written in Qt?
If so, even if I ain’t enough info to understand what kind of application is I would suggest you to port that app in wxwidgets for the interface and to use the Panda3d internal network API for the rest - then you’ll have full compatibility not just between *nix flavors but with mac and windows as well. That is worth a try, I guess