It's my third homework writed by Qt