Panda3D with PyQt problem

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

i found another symptom.
if i run

sudo python test.py

it’s wokring. not make segfault error, but UI is poor.

------------------- 2011.2.15 added
i think it’s a platform specific problem.
above code working well in Windows 7, latest Panda3D , lastest PyQt
maybe i have to change my environment

also working well with:
Ubuntu 10.04, Python 2.6.5, latest Panda3D, PyQt 4.6.2

------------------- 2011.2.16 added
i reinstall Ubuntu 10.10 and install PyQt, Qt, Panda3D with apt-get
and it is working correctly. i don’t know why