Qt固定窗口大小 指定大小 this->setMaximumSize(250, 250); 默认大小 this->setMaximumSize(this->width(), this->height()); 效果