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