Edit block

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
sramp
Active Member
Posts: 26
Joined: Mon Dec 02, 2013 4:15 pm

Edit block

Post by sramp » Fri Feb 21, 2014 12:43 pm

Hello,
when I double click on a block the application goes in the edit block mode.
Please, is it possible to intercept this event?
I would like to avoid to edit the block.
Thanks
sramp

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

Re: Edit block

Post by andrew » Sun Feb 23, 2014 12:02 pm

I don't have a good idea how to override that as easily as possible but the code is in DefaultAction.js in function DefaultAction.prototype.entityDoubleClicked. The default action could be made configurable in future versions.

sramp
Active Member
Posts: 26
Joined: Mon Dec 02, 2013 4:15 pm

Re: Edit block

Post by sramp » Sun Feb 23, 2014 5:51 pm

Andrew,
thank you very much.
It is exactly what I was looking for.
sramp

Post Reply

Return to “QCAD Programming, Script Programming and Contributing”