setFixedSize doesn't work in Universal Windows
-
Perhaps you could set QWindow::setMaximumSize(const QSize &size) and QWindow::setMinimumSize(const QSize &size) which set the maximum and minimum size of the window.
Be aware though. The documentation says that this is a hint to the window manager to prevent resizing above/below the specified size. It is up to the window manager what to do with it.
Maybe you could also look at the Qt::WindowFlags?
-
Perhaps you could set QWindow::setMaximumSize(const QSize &size) and QWindow::setMinimumSize(const QSize &size) which set the maximum and minimum size of the window.
Be aware though. The documentation says that this is a hint to the window manager to prevent resizing above/below the specified size. It is up to the window manager what to do with it.
Maybe you could also look at the Qt::WindowFlags?
@Jan-Willem said in setFixedSize doesn't work in Universal Windows:
Perhaps you could set QWindow::setMaximumSize(const QSize &size) and QWindow::setMinimumSize(const QSize &size) which set the maximum and minimum size of the window.
actually that is what setFixedSize() conveniently already does for you.
@Jan-Willem
on what system are you on? -
I'm working under Linux, but Windows has a window manager I think?