Programmed by using C++ and Qt