this->setMinimumSize(303,370);//设置最小尺寸 this->setMaximumSize(303,370);//设置最大尺寸 放在构造函数里面 转载于:https://www.cnblogs.com/judes/p/6646474.html