def mousePressEvent(self, event):
    if (event.button() == Qt.Qt.LeftButton):
        self.m_flag = True
        self.m_Position = (event.globalPos() - self.pos())
        event.accept()
        self.setCursor(QCursor(Qt.Qt.OpenHandCursor))
def mousePressEvent(self, event):
    if (event.button() == Qt.Qt.LeftButton):
        self.m_flag = True
        self.m_Position = (event.globalPos() - self.pos())
        event.accept()
        self.setCursor(QCursor(Qt.Qt.OpenHandCursor))