Qt: update binding to reflect change in length of string content