here's the function that load the document ( QWidget ) :
Qt Code:
def load(self): ImageProject = OIWid() self.mdiArea.addSubWindow(ImageProject)To copy to clipboard, switch view to plain text mode
i skipped details , but that's it. it's the code that load my widget.
if i make ImageProject an instance variable of my main class ( QMainWindow ) : self.ImageProject instead of ImageProject,
the last opened Project would be self.ImageProject and not the current active window !




Reply With Quote
Bookmarks