Settings

Theme

Basics on Programming a Canvas for a CAD-System [pdf]

blunk-electronic.de

1 points by gneuromante a month ago · 2 comments

Reader

dekhn a month ago

Good stuff- I had to learn most of this on my own.

Pro-tip: most of what you describe and document is already built into Qt, in the Graphics View Framework. It handles all the gunk around coordinate systems, canvas, zoom, scrollbars, and scaling, along with item groups, hit testing, multiple views of the same model, and extensive performance optimizations.

I have recently used Gemini to write an entire 2D CAD system based on this and it worked pretty well (I've already written one by hand).

gneuromanteOP a month ago

Book "Basics on Programming a Canvas for a CAD-System - Coordinate Systems, Canvas, Zoom, Scrollbars, Drawing to Scale" by Mario Blunk

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection