Quote Originally Posted by anda_skoa View Post
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.

Qt Code:
  1. capturafm = dialgABM(self, ABM_ALTA, self.desc, self.campos, self.dialgx, self.dialgy, self.nombre)
  2. 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 )


Quote Originally Posted by anda_skoa View Post
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