Skip to content

print layout legend word wrapping ignored in subgroup headings #66281

Description

@david-morris

What is the bug or the crash?

Subgroup headings don't word wrap:

Image

Steps to reproduce the issue

  1. make a project with a subgroup with a long name
  2. use a print layout with a legend that automatically uses the entries from the project

Versions

QGIS version4.0.2-Norrköping
QGIS code revisionbb929340
 
Libraries
Qt version6.11.0
Python version3.12.13
GDAL version3.12.4 — Chicoutimi
PROJ version9.8.1
EPSG Registry database versionv12.029 (2025-10-02)
GEOS version3.14.1-CAPI-1.20.5
SFCGAL version2.2.0
GeographicLib version2.7.0
SQLite version3.53.0
PDAL version2.10.0
PostgreSQL client version17.3
SpatiaLite version5.1.0
QWT version6.3.0
QScintilla2 version2.14.1
OS versionWindows 11 Version 25H2
 
Active Python plugins
MetaSearch0.3.6
db_manager0.1.20
processing2.12.99

Supported QGIS version

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

New profile

No Duplicate of the Issue

  • I have verified that there are no existing issues raised related to my problem.

Additional context

At work, we need to format diverse legends without human intervention.

It's likely that I'll be able to contribute code for this, so it would be nice if I had an idea what limits I'm working inside to get a fix merged.

Metadata

Metadata

Assignees

Labels

BugEither a bug report, or a bug fix. Let's hope for the latter!Print LayoutsRelated to QGIS Print Layouts, Atlas or Reporting frameworks

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions