[PyKDE] QApplication.setStyle ()

Boudewijn Rempt bsarempt at rempt.xs4all.nl
Thu May 11 22:44:37 BST 2000


On 11 May 2000, Pete Ware wrote:

> The following program core dumps when the setStyle() is there (sip
> 0.11, qt 2.0.1, solaris 2.6):
> 
> --pete
> 
> #! /usr/bin/env python
> 
> import qt
> import sys
> 
> def test ():
> 	app = qt.QApplication (sys.argv)
> 	app.setStyle (qt.QMotifStyle ())
> 	main = qt.QMainWindow (None, '')
> 	w = qt.QPushButton ('Testing', main, '')
> 	app.setMainWidget (main)
> 	main.show ()
> 
> 
> 	return app
> 
> if __name__ == '__main__':
> 	app = test ()
> 	print 'starting'
> 	app.exec_loop ()
> 

That looks a lot like the problem I recently had when I
tried converting the themes example app - Phil did have a
patch for me that worked - have you got that one too?





More information about the PyQt mailing list