[QGIS-Developer] Resize colorbar in legend

Brian Haynes bhaynes at herricktechlabs.com
Fri Feb 4 12:55:58 PST 2022


Hello,

I have tried both the QgsLayoutItemLegend and the QgsLayerTreeView classes to display the colorbar for a loaded raster/mesh layer in a custom QGIS application (3.20 Odense, using C++ api), but the colorbar is way too small.  Is there a way to maximize the size relative to its parent layout/widget?  My last resort is to create one from scratch, which I'd rather not do.

Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20220204/26bcc4ea/attachment.html>


More information about the QGIS-Developer mailing list