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

Unable to edit elements in the print layout after locking an element #57331

Open
2 tasks done
hblGP opened this issue May 3, 2024 · 3 comments
Open
2 tasks done

Unable to edit elements in the print layout after locking an element #57331

hblGP opened this issue May 3, 2024 · 3 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks

Comments

@hblGP
Copy link

hblGP commented May 3, 2024

What is the bug or the crash?

When you group elements and locking them, and then press on the locked group afterwards you are unable to edit any other elements. It's as if all other elements gets locked as well.

Steps to reproduce the issue

  1. Open print layout
  2. Add a few elements forexample labels
  3. Create a group and lock it
  4. Press the locked group
  5. Press other elements

qgis-ltr-bin_ztz6BurYmO

Versions

QGIS-version
3.34.4-Prizren
QGIS-koderevision
decd43d
Qt version
5.15.3
Python version
3.9.18
GDAL/OGR version
3.8.4
PROJ version
9.3.1
EPSG Registry database version
v10.098 (2023-11-24)
GEOS version
3.12.1-CAPI-1.18.1
SQLite version
3.41.1
PDAL version
2.6.0
PostgreSQL klient version
16.1
SpatiaLite version
5.1.0
QWT version
6.1.6
QScintilla2 version
2.13.4
OS version
Windows 10 Version 2009

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

No response

@hblGP hblGP added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label May 3, 2024
@roya0045
Copy link
Contributor

roya0045 commented May 3, 2024

To add more details, this behaviour happens (at least on my end) when you lock ANY element in a layout.

Like other things in the layout, the situation is fixed by closing the layout and reopening it. This makes the state change behave as intended. This is probably related to a larger set of issues with state change in the layout and the complex dependencies betweeen everything.

A refresh/reinitialization might be better for those breaking elements (atlas changes, locking and possibly some tother) than hoping the user closes and reopen the layout to 'fix' it manually.

@hblGP
Copy link
Author

hblGP commented May 3, 2024

Indeed it's when you lock any element, not just the group.

Reopening the windows is a quick fix, but not a good one as I have a rather complex print template with a locked header, so the chance of pressing a locked element is very likely and leads to a lot of frustration for the users using this printtemplate.

This behavior seems new I do not remember having this issue with the previous LTR

@hblGP hblGP changed the title Unable to edit elements in the print layout after locking a group Unable to edit elements in the print layout after locking a element May 3, 2024
@hblGP hblGP changed the title Unable to edit elements in the print layout after locking a element Unable to edit elements in the print layout after locking an element May 3, 2024
@DelazJ
Copy link
Contributor

DelazJ commented May 3, 2024

Assuming I understood the report correctly and following the test I did here (3.36), the issue I see is that you are unable to graphically SELECT an item in the print layout once you have locked any item in the layout. Unlocking the item by unchecking the box or using the corresponding buttons does not fix the issue. Like if the "Select/move item" tool has been deactivated from interacting with the layout or ALL the items have been locked.

However it is technically still possible to edit elements. Locked items can be selected by clicking on their name in the "Items" panel and editing their properties is still possible. The issue is on selecting with the "select/move item" tool not about editing the items properties, as implied by the report title.

@agiudiceandrea agiudiceandrea added the Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks
Projects
None yet
Development

No branches or pull requests

4 participants