[PyKDE] Segmentation fault with QToolBar

Janos Blazi jblazi at gmx.de
Mon Jun 3 12:43:01 BST 2002


My program is short:

   import sys
   from qt import *

   app=QApplication(sys.argv)
   app.connect(app, SIGNAL("lastWindowClosed()"),app,SLOT("quit()"))

   mw = QMainWindow()
   tb = QToolBar(mw) #(***)

   mw.show()
   app.exec_loop()

Everything is displayed correctly but after terminating the program I
get a segmentation fault. If I omit the line (***), no segmentation
fault occures.
(I had that in a much larger program and it took some time to find the
culprit.)
I have LOOKED INTO THE DOCUMENTATION too.

Can anybody give me a hint as to what happens here?

TIA, Hanos Blazi






More information about the PyQt mailing list