QT C++ version of the Calligraphy Program