Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent opening of Layer Properties when double-clicking on visibility checkbox in Layers Panel #38179

Closed
jfbourdon opened this issue Aug 6, 2020 · 5 comments · Fixed by #56190
Labels
Feature Request GUI/UX Related to QGIS application GUI or User Experience

Comments

@jfbourdon
Copy link
Contributor

Feature description.
The idea is to prevent the Layer Properties window to open when clicking on the visibily checkbox in Layers Panel. I often want to rapidly check the difference between two layers so I check/uncheck the visibility checkbox of the first layer, but if I click too fast (double-click speed), the Layer Properties will open and I then need to close it.

Additional context
An alternative is to create a Mutually Exclusive Group, but it forces to have the layers in the same group and it adds some steps.

A way to prevent this could be to don't let a layer be selected when clicking on the checkbox (instead of the layer's name) (idea?)

I just found out that if the current selected layer is a group (the group name, so not really a layer), then you can click as fast as you want on the checkbox of any layer (inside or outside that group) without prompting the Layer Properties windows.

@uclaros
Copy link
Contributor

uclaros commented Aug 6, 2020

Another alternative is to use the toggle visibility action, with a keyboard shortcut

@samsammurphy
Copy link

@uclaros how do we toggle visibility using a keyboard shortcut?

@uclaros
Copy link
Contributor

uclaros commented Jun 24, 2021

You can assign any key you like through settings > keyboard shortcuts. There is a toggle selected layers and a toggle selected layers independently entry. The second one allows to select two layers, one on and one off, and with a single button change both on to off and off to on! If you're running an old version it will not be available as it was introduced I think in 3.14

@tobwen
Copy link

tobwen commented May 27, 2023

When I give QGIS workshops, this is always one of the most requested features.

@alexbruy alexbruy added the GUI/UX Related to QGIS application GUI or User Experience label Dec 7, 2023
@jfbourdon
Copy link
Contributor Author

You can assign any key you like through settings > keyboard shortcuts. There is a toggle selected layers and a toggle selected layers independently entry. The second one allows to select two layers, one on and one off, and with a single button change both on to off and off to on! If you're running an old version it will not be available as it was introduced I think in 3.14

Just found that pressing the space bar when one ou multiple layers are selected toggle their visibility; an alternative to setting explicitly a keyboard shortcut.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request GUI/UX Related to QGIS application GUI or User Experience
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants