hi,
i have a problem using Panda3D with PyQt
my environment:
Ubuntu 10.10
Python 2.6.6
Panda3D 1.7.0
PyQt 4.7.4
this is my working code:
from PyQt4.QtGui import *
import sys
class QTTest(QDialog):
def __init__(self, parent=None):
super(QDialog, self).__init__(parent)
self.setWindowTitle("Test")
self.setGeometry(0,0,400,300)
self.normalWidget = QWidget(self)
self.lineedit = QPushButton('test')
layout = QVBoxLayout()
layout.addWidget(self.pandaContainer)
layout.addWidget(self.lineedit)
self.setLayout(layout)
if __name__ == '__main__':
app = QApplication(sys.argv)
form = QTTest()
form.show()
app.exec_()
if i
import direct.directbase.DirectStart
or
from pandac.PandaModules import WindowProperties
(or both of these) make the segmentation fault error
but if i use QLineEdit widget instead of QPushButton widget, it’s working well regardless of DirectStart was imported or not.
---------add
i think all the class that inherits QAbstractButton class make the same segmentation fault error.
this is the list of class that make error
QPushButton
QRadioButton
QCheckBox
QToolButton
QProgressBar
maybe this question is proper to PyQt forum. but please give me some idea and sorry about my English