I am implementing a simple CAD-like program for laying out basic house layouts. I would like to have a snap-to grid, the ability to add points, lines and form shapes etc.
I know that the scope of this is way beyond a help forum, but since I am going to be implementing it in QT, I'd like a general idea of which fundamental approach to take. There are many ways of going about it, and I'd hate to get 10,000 lines in before I realize I'm going down the wrong road.
So what fundamental architecture would you guys recommend for something like this? On my last similar project I used a big QWorkspace where I overloaded the paintevent and did a lot of manual drawing, and for my "entities" I directly inherited from QWidget and handled all of my own events.
I seem to remember something about a new flexible canvas widget in QT 4, but after a few searches I'm not seeing anything.
Bookmarks