Bug report #18608

Layer tree embedded widgets do not show up unless you move layer

Added by Richard Duivenvoorde about 6 years ago. Updated over 5 years ago.

Status:Closed
Priority:Normal
Assignee:Alessandro Pasotti
Category:Map Legend
Affected QGIS version:3.1(master) Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:Yes Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:26496

Description

To reproduce:

- open new project
- add osm xyz layer
- open properties of the xyz layer
- Go to Legend tab, and move 'Opacity slider' from 'Available widgets' to 'Used widgets'
- click Apply and OK

Nothing visually happens, the Transparency slider (with me here) does not show up in the Layers panel.
Even, moving the map, opening the treeview by clicking the little black triangle in the Layers panel, the slider widget does NOT show up. Resizing the window, resizing the layer panel: no widget.

Only when you 'drag' the one layer some milimeters in the Layer Panel, it apparently is repainted and the slider appears.

Mmm, testing in 2.18.1 now, it has the same issue. Apparently the repainting/drawing is changed/optimized?

(as I was thinking about a layertree widget for wmts/xyz layer to have a button 'show proper scale' (see user mailing list), I thought this to e fixed first :-)


Related issues

Related to QGIS Application - Bug report #19964: layer tree embedded widgets do not show up for raster layers Closed 2018-09-26
Related to QGIS Application - Bug report #17550: Opacity slider in the Layers Panel partially broken for W... Closed 2017-11-25

Associated revisions

Revision 56149ff3
Added by Alessandro Pasotti over 5 years ago

Force legend update when raster properties changes

Fixes #18608 - Layer tree embedded widgets do not show up unless you move layer

History

#1 Updated by Ricardo Silva over 5 years ago

  • Related to Bug report #19964: layer tree embedded widgets do not show up for raster layers added

#2 Updated by Alessandro Pasotti over 5 years ago

  • Pull Request or Patch supplied changed from No to Yes
  • Assignee set to Alessandro Pasotti

#3 Updated by Borys Jurgiel over 5 years ago

  • Related to Bug report #17550: Opacity slider in the Layers Panel partially broken for WMS and XYZ layers added

#4 Updated by Anonymous over 5 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

#5 Updated by Alessandro Pasotti over 5 years ago

  • Resolution set to fixed/implemented

Also available in: Atom PDF