PDA

View Full Version : QwtPlotLegendItem with items spanning multiple columns



alex_sh
17th August 2023, 09:39
Hi,

I'm trying to display a QwtPlotLegendItem which has 2 columns and titles, something like:


long_bold_title1
item1 item2
item3 item4

long_bold_title2
item5 item6


Each entry in the legend is a custom plot item that only displays a text in the legend, and does not draw anything on the plot.

Everything works, except for title spanning. I cannot seem to make the title items span both columns, and the whole layout looks bad because of this.

Is there a way to do this?

Thanks!