Better coding style(Qt)