Qt code for converting touchscreen handwritten math to latex