QCAD Bugtracker

  • Status Assigned
  • Percent Complete
    0%
  • Task Type Feature Request
  • Category QCAD (main)
  • Assigned To
    Andrew
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version 3.32.6
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: QCAD Bugtracker
Opened by Deepek Daniel Singh - 09.03.2026

FS#2709 - Shortcut for 'Activate Layer of Entity'

Hi Dev Team,

Requesting a keyboard shortcut for the ‘Activate Layer of Entity’ option in right-click menu of entity.

Implementation:
1. Entity is selected: keyboard shortcut will activate layer of that entity.

2. No Entity is selected: keyboard shortcut will activate layer of entity that is clicked next.

3. Multiple entities are selected: error message “multiple entities selected, please select a single entity”.

Thankyou for all the hard work on a great piece of software.

Kind Regards, Daniel

10.03.2026 : A task closure has been requested. Reason for request: Basically implemented. Simplistic or with an Add-On tool.
CVH commented on 10.03.2026 04:13

Hi,

Should be implemented already ... Kinda

Try an R-Click near a drawing entity.
Then select 'Activate Layer of entity' from the context menu.

- Basically a 'blank' guiAction created on the fly in .../scripts/Pro/Widgets/ContextMenu/ContextMenu.js
- Nothing more fancy than: di.setCurrentLayer(entity.getLayerId());
- The context menu never acts on selected only
- Does not diversify between stacked entities
- ALT+L-click does not mix with an R-click for the Context Menu
- Re-activates the current active layer on indicating an entity on the current active layer, is considered as a document change, is action in undo stack
- When any of the parents layers are collapsed they are not expanded
- Expanding a presumed parent is activating it, losing the intended focus
- When collapsed it is practically impossible to see which sub-layer was activated
- All main level parents may be collapsed on reloading a drawing
- Deeper levels only may retain their expanded/collapsed state
- Retaining their expanded/collapsed state seems to depend on the QCAD version used to create them.



Another option would be my Add-On tool 'ActivateLayerFromSelection'.
This would at least expand the parent layer and attempt to scroll the Layer List.
Halfway down the list would be a better option but I didn't find a solution for that.
(Due to unsupported Qt5/6 methods)

QCAD Pro or CE
Keyboard shortcut: 'YG'
Option 1 diversifies between current or new to activate on a single selection
Option 2 or a future selection is not supported
Option 3 diversifies between current, new or ambiguous selection
Reports action on Command History

Search the (new) forum on the Add-On name as keyword if that is possible.
It is made impossible for me to help you any further with this.

Regards,
CVH

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing