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

_______________________________________________
PyKDE mailing list    [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to