
Originally Posted by
anda_skoa
You are closig the "active sub window" of the mdi area.
That will always be an mdi sub window, not any dialog._
As i could understand from the docs, the next lines creates a subwindow in the mdiarea containing the dialog.
capturafm = dialgABM(self, ABM_ALTA, self.desc, self.campos, self.dialgx, self.dialgy, self.nombre)
globvar.mdiArea.addSubWindow(capturafm)
capturafm = dialgABM(self, ABM_ALTA, self.desc, self.campos, self.dialgx, self.dialgy, self.nombre)
globvar.mdiArea.addSubWindow(capturafm)
To copy to clipboard, switch view to plain text mode
You are suggesting to create an mdisubwindow and then activate it?
dialgABM should return a QMdiSubWindow object and then globvar.mdiarea.setActiveSubwindow( capturafm )

Originally Posted by
anda_skoa
Btw, in you create a widget as "central widget" but then don't use it as such.
Just create the mdi area.
Cheers,
_
Ok, noted and corrected.
Many thanks for your help.
Best regards.
Ariel Pereira
Bookmarks