Still can resize the Window after setSizePolicy to fixed
Solved
General and Desktop
-
Hi, here's the constructor of my MainWindow class. I set the window size policy to fixed, and updateGeometry, but still can resize the window. Why it can't work? Maybe I used it in a wrong way?
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) , ui(new Ui::MainWindow) { ui->setupUi(this); this->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); this->updateGeometry(); }