A
A
awsoft2016-09-25 11:57:26
Qt
awsoft, 2016-09-25 11:57:26

Where can I get material for developing a 2D vector editor?

I am working on a project in Qt for conducting specialized calculations, as the initial data, a model consisting of rooms, corridors, openings, stairs (i.e. building layout) is transferred to the calculation module. The question is related to the development of a graphical module, with the help of which the model is being built.
I plan to implement this module in the form of a vector 2D editor, in which elements can be rectangles and polygons. The editor should be able to select elements, move them, resize them, attach them to each other, rotate them, etc.
I can’t find literature and articles on the development of such a module on the Internet, can someone tell me where to look, maybe there is a simple open source editor ...

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
awsoft, 2017-09-08
@awsoft

Maybe someone will be interested: to study how a graphic editor works from the inside, not even a simple editor, but a whole CAD system, you can get acquainted with the open source programs QCAD ( http://www.qcad.org) and LibreCAD ( librecad.org/cms/home.html)

V
Vitaly, 2016-09-25
@vt4a2h

I won’t tell you about simple editors, but I think that you can easily find it on github upon the appropriate request.
In terms of working with 2d graphics, Qt has excellent documentation: https://doc.qt.io/qt-5/examples-graphicsview.html. There is also this example: https://doc.qt.io/qt-5/qtwidgets-graphicsview-diag... , this is probably the closest to your question.

R
Rou1997, 2016-09-25
@Rou1997

There are vector editors for SVG, there are large open source projects, and you can search for WYSIWYG components with open and closed code in C ++, in principle, they are all vector and you can find something, but it’s easy to write it yourself, I wrote in C #, Delphi, C++ Builder, nothing complicated at all, it is best to store in an XML-like format, store in memory in the DOM, but if there is no nesting, then a regular collection will do.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question