'Reimplement Qt method'

def moveEvent(self, event):

    if ((not self.isMaximized()) and (not self.fullscreen_flag)):
        self.window_position = self.pos()
    QMainWindow.moveEvent(self, event)
    self.sig_moved.emit(event)
