use proper API to set widget value, refs #12375