update readme and code

add getdocument qt function in code