Get current value.
QxTextField.getSelectionText();
Set new value.
QxTextField.setSelectionText(newValue);