[PyKDE] A bug confirmed

Dave S eric3 at pusspaws.net
Fri Sep 29 12:22:40 BST 2006


This is an easily reproducible bug.

Start QT4 designer - create a new form type 'main window'

put a push button on it :)

save it

pyuic it ...

Try to call it with ...


#!/bin/env/python
import mainscreen, sys
from PyQt4 import *

def main(args):

    app = QtGui.QApplication(sys.argv)
    window = QtGui.QDialog()

    ui = mainscreen.Ui_MainWindow()
    ui.setupUi(window)
    
    window.show()
    sys.exit(app.exec_())
    
if __name__=="__main__":
    main(sys.argv)

and you get a 'setCentralWidget' error.

QT v4.1.4; PyQt v4.0.1; and Python v2.4.3

Dave




More information about the PyQt mailing list