In: QCAD.org Forum - Information, Andrew implied that Alt-click would bring up a context menu to allow selection of overlapping lines. In practice, I find it necessary to do Ctrl-Alt-click. This leads to a further small problem: to select multiple segments it is necessary to hold down the , and at the same time (a slow operation on my standard keyboard) in order to choose the next overlapping segment.
If an improvement were possible I’d love to see repeated ‘Alt-click’-ing cycle through selecting the various overlapping lines.
In EAction.getEntityId the Alt key differentiates between one entity ID or one ID out a list of candidates.
Standard implemented since the 3.12.7 release Jan. 2016.
The code provides for opting out of this behavior but that is not listed (anymore) under the Graphics View Preferences.
On Windows there is no difference between Alt+Click and Ctrl+Alt+Click, the Ctrl key is probably ignored here.
On Windows Ctrl+Click does nothing, Shift+Click adds to (or subtracts from) the selection.
And thus Shift+Alt+Click lets us select from a list which to add to (or subtracts from) the selection.
If there are no multiple candidates to choose from then Shift+Alt+Click does the same as Shift+Click.
I see no need to hold down the , and at the same time.
Maybe you could make a selection in the opposite way.
Select a small rectangular region from left to right to select all inside and crossing and then Shift+Click to deselect those to keep.
CTRL+SHIFT+ALT is not recognized in QCAD = effectless.
However - good praxis would be to avoid overlapping entities in CAD but as we know … it will happen in certain situation.
If you have to face those situation there are different approaches to solve the issue - in your case I don’t think that ALT+CLICK is the best choice.
I prepared a test dxf. In this file are 10 overlapping lines with different lengths. Let assume I need only the line with the 55.25 lengths. I can get rid of the 9 other lines in one task.
Who ever is reading this topic - try it yourself and please share how the task can be accomplished.
@CVH - thank you for this information. You say that under Windows that there is no difference between Alt+Click and Ctrl+Alt+Click.
I would like to get my Linux installation to also ignore the need for the Ctrl key so that it is sufficient to do Alt+Click to bring up the little context menu; is there any way to configure this?
@Husky - I would not use overlapping lines in my own work, but when I receive drawings from others they are not so careful!
As mentioned I even checked it in the current code of EAction what is open source:
There is stated that it returns:
… Entity ID under the mouse cursor.
User may choose between multiple candidates if result is ambiguous and Alt key is pressed.
Just as expected.
The code then continues here:
Line 2123-2131 are executed when ALT was not pressed.
The rest until line 2221 populates an “EntityContextMenu” up to 20 items and shows it.
2 Reactors are set in place to handle hovering and selection.
isAltPressed() is a Library function:
getKeyboardModifiers() is also a Library function:
Nothing extraordinary there, the last updates to these are 4 years old.
Bottom line: What you describe is not standard behavior.
It could be keyboard or OS related.
It could be a bug for Linux or just your version or it could be Qt related.