PDA

View Full Version : Advices for animating drawing of a QPainterPath?



Gnurou
4th July 2008, 15:17
Hello everybody,

For a project of mine, I would need to make an animation of a QPainterPath being filled. The idea is that I have paths for alphabet characters, and I want to make a progressive drawing of them, i.e. give the feeling that they are being written by hand in front of the user.

Any suggestions as for how to obtain that? I was thinking of building a partial path that I would draw and make it more complete as the animation goes, but it seems difficult to achieve with the current API. Another hint would be to draw enough spots at various places (using pointAtPercent) but then I'd have to deal with the pen size and make sure there is no gap between dots. Would someone have better ideas to suggest?