def mouseMoveEvent(self, event):
        self.oldPosition = self.pos()
        if self.isSideClicked and self.isCusorRightSide:
            w = max(self.minimumWidth(),
                    self.currentWidth + event.x() - self.rdragx)
            h = self.currentHeight
            self.resize(w, h)
        elif self.isSideClicked and self.isCusorDownSide:
            w = self.currentWidth
            h = max(self.minimumHeight(),
                    self.currentHeight + self.rdragy - event.y())
            self.resize(w, h)
        # elif self.isSideClicked and self.isCusorLeftSide:
        #     x = event.x() + self.xPos - self.rdragx
        #     w = max(self.minimumWidth(),
        #             self.xPos + self.currentWidth - x)
        #     self.move(x , self.yPos)
        #     self.resize(w, self.currentHeight)
        else:
            # 鼠标移动事件
            if self.isMaximized():
                event.ignore()
            else:
                if not self.isLocked():
                    if hasattr(self, "dragPosition"):
                        if event.buttons() == Qt.LeftButton:
                            self.move(
                                event.globalPos() - self.dragPosition)
                            event.accept()
dataset/ETHPy150Open dragondjf/PFramer/qframer/fmainwindow.py/FMainWindow.mouseMoveEvent/swapped operands of `-`