diff --git a/vcl/qt5/QtBuilder.cxx b/vcl/qt5/QtBuilder.cxx index e282ce872790..95a27a2ec162 100644 --- a/vcl/qt5/QtBuilder.cxx +++ b/vcl/qt5/QtBuilder.cxx @@ -164,7 +164,10 @@ QObject* QtBuilder::makeObject(QObject* pParent, std::u16string_view sName, std: } else { - pObject = new QDialogButtonBox(pParentWidget); + QDialogButtonBox* pButtonBox = new QDialogButtonBox(pParentWidget); + if (hasOrientationVertical(rMap)) + pButtonBox->setOrientation(Qt::Vertical); + pObject = pButtonBox; } } else if (sName == u"GtkButton")