Did: self.vtkWidget = QVTKRenderWindowInteractor(self) instead of: self.vtkWidget = QVTKRenderWindowInteractor()
Since QVTKRenderWindowInteractor inherits QWidget, it calls: QtGui.QWidget.__init__(self, parent, wflags|QtCore.Qt.MSWindowsOwnDC) So I guess once I passed a parent in, it knew which window to display to. QVTKRenderWindowInteractor Mads Ipsen-3 wrote: > > dizou wrote: >> Solved this. >> > How? > > -- > +-------------------------------------------------------------+ > | Mads Ipsen, Scientific developer | > +-------------------------------+-----------------------------+ > | QuantumWise A/S | phone: +45-29716388 | > | Nørre Søgade 27A | www: www.quantumwise.com | > | DK-1370 Copenhagen K, Denmark | email: [email protected] | > +-------------------------------+-----------------------------+ > > > _______________________________________________ > PyQt mailing list [email protected] > http://www.riverbankcomputing.com/mailman/listinfo/pyqt > > -- View this message in context: http://old.nabble.com/Getting-a-couple-errors-when-I-try-and-start-a-QMainWindow-from-a-QMainWindow-tp27015712p27076798.html Sent from the PyQt mailing list archive at Nabble.com. _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
