diff --git a/src/meshlab/rich_parameter_gui/richparameterlistframe.cpp b/src/meshlab/rich_parameter_gui/richparameterlistframe.cpp index 022e1ba1d..c03a13014 100644 --- a/src/meshlab/rich_parameter_gui/richparameterlistframe.cpp +++ b/src/meshlab/rich_parameter_gui/richparameterlistframe.cpp @@ -176,7 +176,8 @@ void RichParameterListFrame::loadFrameContent( if (!p.first.isEmpty()) { QString labltext = "
" + p.first + ":
"; QLabel* l = new QLabel(labltext, this); - glay->addWidget(l,i++,0,Qt::AlignLeft); + l->setAlignment(Qt::AlignRight); + glay->addWidget(l,i++,0); } //put the parameter widgets into the grid layout for (const RichParameter* fpi : p.second){ @@ -197,7 +198,8 @@ void RichParameterListFrame::loadFrameContent( if (!p.first.isEmpty()) { QString labltext = "" + p.first + ":
"; QLabel* l = new QLabel(labltext, this); - flay->addWidget(l,j++,0,Qt::AlignLeft); + l->setAlignment(Qt::AlignRight); + flay->addWidget(l,j++,0); } for (const RichParameter* fpi : p.second){ const RichParameter& defrp = defParSet.getParameterByName(fpi->name());