Detect when selection change

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
modlem
Registered Member
Posts: 2
Joined: Mon Dec 04, 2017 7:00 pm

Detect when selection change

Post by modlem » Tue Dec 05, 2017 4:35 pm

Hi Andrew,

Wondering please how can I detect selection change, and detect what entities currently are selected ?

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

Re: Detect when selection change

Post by andrew » Mon Dec 18, 2017 12:32 pm

All RSelectionListeners are notified when the selection changes.

The selection display in the status bar would be an example:
https://github.com/qcad/qcad/blob/maste ... Display.js

Post Reply

Return to “QCAD Programming, Script Programming and Contributing”