Hi guys, I have done this:
def setupUi(self, MainWindow): loader = QUiLoader() file = QFile("...") file.open(QFile.ReadOnly) centralwidget = loader.load(file, self) centralwidget.setWindowFlags(Qt.Widget) self.setCentralWidget(centralwidget) It works, but the real centralWidget is nested into the main QMainWindow centralWidget, so to set my own centralWidget, I have to do: self.centralWidget().setCentralWidget(...) There is a better way to load a QMainWindow from a ui file via QUiLoader? Thank you! -- Profile: http://it.linkedin.com/in/compagnucciangelo
_______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt