Purchase QCAD professional source code

Discussion forum for C++ and script developers who are using the QCAD development platform or who are looking to contribute to QCAD (translations, documentation, etc).

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files, scripts and screenshots.

Post one question per topic.

Post Reply
徐亦珂辰
Newbie Member
Posts: 4
Joined: Fri Jan 05, 2024 6:39 am

Purchase QCAD professional source code

Post by 徐亦珂辰 » Mon Jan 08, 2024 9:43 am

Hello QCAD developers:
After purchasing QCAD professional edition, can you get QCAD source code? Get professional source code how to build applications through QT? Or, how to buy QCAD source code. Because I need to use the SDK to call some functions of QCAD to write my own program.
How much does it cost to buy the source code?

User avatar
andrew
Site Admin
Posts: 9063
Joined: Fri Mar 30, 2007 6:07 am

Re: Purchase QCAD professional source code

Post by andrew » Mon Jan 08, 2024 9:53 am

No, the source code of QCAD Professional cannot be purchased.

The recommended way to extend and modify QCAD Professional is through its ECMAScript interface:

https://www.qcad.org/en/tutorial-script-programming

C++ plugins are also possible.

If you can elaborate on you plans or let us know what part of the API you need, we can help more efficiently.

Please do not post the same question to multiple forum topics, thanks.

徐亦珂辰
Newbie Member
Posts: 4
Joined: Fri Jan 05, 2024 6:39 am

Re: Purchase QCAD professional source code

Post by 徐亦珂辰 » Mon Jan 08, 2024 10:06 am

andrew wrote:
Mon Jan 08, 2024 9:53 am
No, the source code of QCAD Professional cannot be purchased.

The recommended way to extend and modify QCAD Professional is through its ECMAScript interface:

https://www.qcad.org/en/tutorial-script-programming

C++ plugins are also possible.

If you can elaborate on you plans or let us know what part of the API you need, we can help more efficiently.

Please do not post the same question to multiple forum topics, thanks.
I need to use QCAD to view the function of importing images and drawing graphics.Can you tell me which QCAD interfaces I can call?How is the fee charged?

CVH
Premier Member
Posts: 3480
Joined: Wed Sep 27, 2017 4:17 pm

Re: Purchase QCAD professional source code

Post by CVH » Mon Jan 08, 2024 1:38 pm

Xu Yikechen wrote:
Mon Jan 08, 2024 10:06 am
I need to use QCAD to view the function of importing images and drawing graphics.
Inserting an image on a drawing is an open source QCAD tool:
https://github.com/qcad/qcad/blob/maste ... e/Image.js

This creates a new drawing entity: https://qcad.org/doc/qcad/3.0/developer ... ntity.html
With the related data object: https://qcad.org/doc/qcad/3.0/developer ... _data.html
Xu Yikechen wrote:
Mon Jan 08, 2024 10:06 am
How is the fee charged?
Please refer to: https://www.ribbonsoft.com/en/online-shop

PS: Sorry to translate your user name, I am not allowed to use Chinese text on reply.

Regards,
CVH

User avatar
andrew
Site Admin
Posts: 9063
Joined: Fri Mar 30, 2007 6:07 am

Re: Purchase QCAD professional source code

Post by andrew » Mon Jan 08, 2024 3:40 pm

importing images
Importing and inserting images (bitmaps) is part of the open source QCAD base:
https://github.com/qcad/qcad/tree/maste ... Draw/Image
drawing graphics
This is too generic for me to comment on. Maybe you can elaborate on this.

徐亦珂辰
Newbie Member
Posts: 4
Joined: Fri Jan 05, 2024 6:39 am

Re: Purchase QCAD professional source code

Post by 徐亦珂辰 » Tue Jan 09, 2024 2:04 am

andrew wrote:
Mon Jan 08, 2024 3:40 pm
importing images
Importing and inserting images (bitmaps) is part of the open source QCAD base:
https://github.com/qcad/qcad/tree/maste ... Draw/Image
drawing graphics
This is too generic for me to comment on. Maybe you can elaborate on this.
Import image:Using the Load DWG and PDF Format Functionality in QCAD
Draw a graph:Draw the required graphics using lines, arcs, and other functions in QCAD.Simply put, it is how I use SDK to call the interface of QCAD's functions such as drawing lines, arcs, and arcs

CVH
Premier Member
Posts: 3480
Joined: Wed Sep 27, 2017 4:17 pm

Re: Purchase QCAD professional source code

Post by CVH » Tue Jan 09, 2024 6:15 am

Xu Yikechen wrote:
Tue Jan 09, 2024 2:04 am
Import image:Using the Load DWG and PDF Format Functionality in QCAD
Draw a graph:Draw the required graphics using lines, arcs, and other functions in QCAD.
Simply put, it is how I use SDK to call the interface of QCAD's functions such as drawing lines, arcs, and arcs
To open a file in the GUI is also an open source tool: https://github.com/qcad/qcad/tree/maste ... e/OpenFile
What file types and file versions that supports depends on QCAD CE, Pro or QCAD/CAM.
Apart from the fact that the QCAD GUI is not required, see tutorial link provided by Andrew.
More on the scripting interface: https://www.qcad.org/en/qcad-scripting

You will find all open source tools arranged under 'scripts': https://github.com/qcad/qcad/tree/master/scripts
The drawing tools are located under 'script/Draw': https://github.com/qcad/qcad/tree/master/scripts/Draw

More on the QCAD Application Framework: https://qcad.org/doc/qcad/3.0/developer/index.html
Entity types in details: https://qcad.org/doc/qcad/3.0/developer ... ntity.html
Fundamental math classes: https://qcad.org/doc/qcad/3.0/developer ... _math.html
And much more ....

Happy reading,
CVH

Post Reply

Return to “QCAD Programming, Script Programming and Contributing”