FinderCheng
31st October 2009, 02:33
Hi, there! I'm trying to develop a graphics editor (similar to MS Paint). For items moving I choose Graphcis View Framework to implement this software. So I have some questions:
1. How can I implement rubber with Graphics View Framework? Because each item extends QGraphicsItem, may I should override its paintEvent?
2. If I want to save the scene into a png file, how should I do?
3. How can I implement function such as eraser?
I think Graphics View Framework is much suitable for showing sonething not drawing, maybe it is more convenient with QPaint in paintEvent extends QWidget. Any suggestions are welcome!
Thank you!
1. How can I implement rubber with Graphics View Framework? Because each item extends QGraphicsItem, may I should override its paintEvent?
2. If I want to save the scene into a png file, how should I do?
3. How can I implement function such as eraser?
I think Graphics View Framework is much suitable for showing sonething not drawing, maybe it is more convenient with QPaint in paintEvent extends QWidget. Any suggestions are welcome!
Thank you!