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

Hi CVH,

Thanks for this. Your add-on tool 'ActivateLayerFromSelection' did what I needed. It's much faster than using the right-click context menu.

I hope compatibility does not break in future QCAD versions, as I use this often. Hopefully, a keyboard shortcut becomes native.

Regards, Daniel

CVH commented on 11.03.2026 03:51

Thanks for the kind words.
It is indeed very handy for editing a document with many layers.

Future support is no longer up to me as it was not adopted 'As is'.
Additionally, it will no longer be possible to debug it under future releases.
From the notes inside it should be clear that real-time debugging was essential.


On a future shortcut conflict you can adapt the keystroke sequence.
Note that you can also place any command on 1-2 user defined Toolbars.
Then it is merely one click. ;-)
For both see: Application Preferences .. General .. Tool Settings


I now see that QCAD Bugtracker on Flyspray has changed overnight.
(Missing formatting icons, date and time misplaced)
It's possible that even this medium will become inaccessible to me. :-(

Regards,
CVH

Admin

CVH: may I ask why the discourse forum is "inaccessible" for you?

CVH commented on 17.03.2026 13:40

Yes, you may.

From the Discource site:
"Discourse is designed for the next 10 years of the Internet, so the minimum browser requirements are high."
"Discourse supports the latest, stable releases of all major browsers and platforms"

I don't use the latest stable release of Windows … Win11.
The latest stable browsers for Win7 or Win10 don't meet with the requirements.
Therefore, I can only read the new topics and/or posts. (Lurking)
(7 new, which must be wrong because I do count a few more)

I notice that I am not missing much because of this, that questions are not answered or are answered late, but I also see that the number of views has decreased drastically.



QCAD Bugtracker on Flyspray seems to look better again now that I access it using:

https://www.qcad.org/bugtracker/...

I changed my bookmark that did not include the "www."
Seen in a recent forum reply by you.



Too bad, because Zig-Zag pocketing is/was in a final state.
I am now looking for a fellow user who can and is willing to access the forum in my name.
There are/were many other new tools, updates, methods and fixes in the pipeline.

I have more or less switched to another pastime.

Cheers,
CVH

Admin

Right, thanks for letting me know.

The number of views has decreased significantly because previous "views" were 99.9% DDoS attacks which was the number one problem with phpBB (it's ridiculously trivial to bring phpBB to its knees).

Anyway.. many thanks for all your contributions over the years. I hope you find a way to still participate. If not, as you are saying, you are not missing much. Enjoy all the free time ;)

Andrew

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing