How to draw graphics like AutoCAD implement coordinate system and zoom
-
wrote on 31 Aug 2019, 12:34 last edited by
hi,
I want to know if there is a possibilty to create app like autocad to draw graphics, vector graphics with QT.
thanks. -
hi,
I want to know if there is a possibilty to create app like autocad to draw graphics, vector graphics with QT.
thanks. -
wrote on 31 Aug 2019, 13:36 last edited by
hi @aha_1980,
firstfull thank you for your response. so I will ask for resources or tutorials for this purpose.
thanks. -
Hi
This could be a good starting point
https://doc.qt.io/qt-5/qtwidgets-graphicsview-diagramscene-example.html
Its available directly in Creator under examples. -
wrote on 1 Sept 2019, 19:30 last edited by
Tarik
You can do it, I have, but Qt lacks all of the necessary tools. For example every CAD system I have used has a requirement to find the closest point on another graphical--vector projection--which I did not find in Qt. Do not get me wrong, Qt supplies most of the tools for creating and displaying graphics, but not for interactively creating graphics; you will need to add many. I am currently writing a book that fills in most of the omissions.
-
Tarik
You can do it, I have, but Qt lacks all of the necessary tools. For example every CAD system I have used has a requirement to find the closest point on another graphical--vector projection--which I did not find in Qt. Do not get me wrong, Qt supplies most of the tools for creating and displaying graphics, but not for interactively creating graphics; you will need to add many. I am currently writing a book that fills in most of the omissions.
wrote on 2 Sept 2019, 09:48 last edited byhi @ofmrew,
Thank you for your response. that's what i see, i hope they improve Qt like for this purpose. e.g. creating a widget QCadView
it will help a lot.
thank you. -
Hi
This could be a good starting point
https://doc.qt.io/qt-5/qtwidgets-graphicsview-diagramscene-example.html
Its available directly in Creator under examples.wrote on 2 Sept 2019, 10:03 last edited byhi @mrjj,
Thank you for your response. this may help.
thank you. -
Tarik
You can do it, I have, but Qt lacks all of the necessary tools. For example every CAD system I have used has a requirement to find the closest point on another graphical--vector projection--which I did not find in Qt. Do not get me wrong, Qt supplies most of the tools for creating and displaying graphics, but not for interactively creating graphics; you will need to add many. I am currently writing a book that fills in most of the omissions.
@ofmrew
please be sure to post book name in
https://forum.qt.io/category/6/announcements
:)
(when its ready)
1/8