This should be used with caution since in some cases (mostly complex widgets) this might give unrespected results.
Get current value.
QxWidget.getBorder();
Set new value.
QxWidget.setBorder(newValue);