I am trying to implement a pattern recognition algorithm.
I have set up a QWidget with a QPixMap on which the user can draw the pattern with his/her mouse.
Assuming the user draws a '3', the program should save all the points (x and y coordinates) in that drawing into an xml file so that the file can be loaded and the shape be recognized.
I know there is a (de)serialization operator built in QDataStream for QPainterPath but how would I convert the drawing into a QPainterPath?