This should be used with caution since in some cases this might give unrespected results.
Get current value.
QxWidget.getHorizontalAlign();
Set new value.
QxWidget.setHorizontalAlign(newValue);