Question on the script generator from a curious guy!

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
neFAST
Newbie Member
Posts: 5
Joined: Tue Jan 08, 2019 10:29 pm

Question on the script generator from a curious guy!

Post by neFAST » Tue Jan 08, 2019 10:45 pm

I just discovered QCad from a friend and it looks like a solid and great piece of software!
I was looking at the console and the fact that Qt Object are wrapped in the ECMA engine.

From what I understand, old Qt owners (trolltech) used to distribute a qt-script-generator responsible for creating the project that are committed under https://github.com/qcad/qcad/tree/master/src/3rdparty

Is it how where those "generated_cpp" comes from? Is the script-generator commited anywhere else?

Thanks in advance for your help!
Regards
nF

neFAST
Newbie Member
Posts: 5
Joined: Tue Jan 08, 2019 10:29 pm

Re: Question on the script generator from a curious guy!

Post by neFAST » Thu May 30, 2019 7:54 am

Is that a sensitive/tough topic?

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

Re: Question on the script generator from a curious guy!

Post by andrew » Thu May 30, 2019 10:13 am

neFAST wrote:
Tue Jan 08, 2019 10:45 pm
Is it how where those "generated_cpp" comes from?
Yes.
neFAST wrote:
Tue Jan 08, 2019 10:45 pm
Is the script-generator commited anywhere else?
Not that I'd know.
neFAST wrote:
Tue Jan 08, 2019 10:45 pm
Is that a sensitive/tough topic?
No, just not very relevant for the vast majority of QCAD users / developers ;)

neFAST
Newbie Member
Posts: 5
Joined: Tue Jan 08, 2019 10:29 pm

Re: Question on the script generator from a curious guy!

Post by neFAST » Fri May 31, 2019 9:12 am

Thanks a lot for your reply.
I can imagine most of QCAD users don't care.
Reason I asked is that I had played with the qtscriptgenerator and Qt4 a while back, and when moving to Qt5 projects I hard a hard time trying to compile it.
I had found this phbaer guy who forked the repository from shibukawa, but still I could manage to make it work with my Qt5 setup.

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

Re: Question on the script generator from a curious guy!

Post by andrew » Wed Jun 05, 2019 10:19 pm

You can find the Qt script bindings we're using for QCAD under:
https://github.com/qcad/qcad/tree/master/src/3rdparty

neFAST
Newbie Member
Posts: 5
Joined: Tue Jan 08, 2019 10:29 pm

Re: Question on the script generator from a curious guy!

Post by neFAST » Tue Jun 11, 2019 8:07 am

Hello Andrew. I found the QtScript bindings but I was wondering which qt-script-generator generated those projects.
Last time I tried the fork from shibukawa it would not properly run with Qt5.7+
Last edited by neFAST on Sat Oct 03, 2020 12:18 pm, edited 1 time in total.

neFAST
Newbie Member
Posts: 5
Joined: Tue Jan 08, 2019 10:29 pm

Re: Question on the script generator from a curious guy!

Post by neFAST » Sat Oct 03, 2020 12:18 pm

Hi Andrew, I know I'm kinda off topic here. I'm finally moving to Qt5 and still wondering if you maintain Qt-script-generator or if you work from the generated projects themselves.
I found a Python wrapper project that seems to continue working on the script-generator originally from Trolltech, I believe this could soon become useful with Qt6 dropping QtScript
https://github.com/MeVisLab/pythonqt/tr ... /generator

Post Reply

Return to “QCAD Programming, Script Programming and Contributing”