practice source code of Qt