def mouseMoveEvent(self, QMouseEvent):
    if (Qt.Qt.LeftButton and self.m_flag):
        self.move((QMouseEvent.globalPos() - self.m_Position))
        QMouseEvent.accept()
def mouseMoveEvent(self, QMouseEvent):
    if (Qt.Qt.LeftButton and self.m_flag):
        self.move((QMouseEvent.globalPos() - self.m_Position))
        QMouseEvent.accept()