some code about qt