Qt: Avoid setting fixed window size

set minimum and maximum sizes to the same value instead
This commit is contained in:
Alexander Babikov
2025-08-17 04:23:55 +05:00
parent d7aee604c4
commit 43877ae7d5
5 changed files with 19 additions and 4 deletions

View File

@@ -58,7 +58,9 @@ VMManagerAddMachine(QWidget *parent) : QWizard(parent)
#endif
// Wizard wants to resize based on image. This keeps the size
setFixedSize(QSize(550, size().height()));
setMinimumSize(QSize(550, size().height()));
setMaximumSize(QSize(550, size().height()));
setWindowFlag(Qt::MSWindowsFixedSizeDialogHint, true);
setOption(HaveHelpButton, false);
// setPixmap(LogoPixmap, QPixmap(":/settings/qt/icons/86Box-gray.ico"));