As a side note, every change should be checked under both X11 and Wayland, even if it seems elementary. In this case QWidget::adjustSize() didn't have effect under Wayland, and that made me think that the dialog should be resized correctly under X11 too, while it wasn't.
As a side note, every change should be checked under both X11 and Wayland, even if it seems elementary. In this case
QWidget::adjustSize()
didn't have effect under Wayland, and that made me think that the dialog should be resized correctly under X11 too, while it wasn't.