//重写这个函数 void mousePressEvent(QMouseEvent *event){if (event->button() == Qt::LeftButton){return;}else{QPushButton::mousePressEvent(event);}}
ui->Pushbutton->enable(false);