Hello,
I am new to Qwt and Qt and require using Qwt to draw a minimum of 15 plots, however I needed to fix the size of the qwtplot. Setting the size of the qwtplot does not adjust the size of the legend. The large number of plots thus results in a large legend accompanied by a scrollbar which is undesirable. Setting the font size of the legend items also does not solve the issue. I would like to know how to access individual legend items in order to set their spacing to zero. Converting the legend to a list like:
QList<QWidget*> this->legend()->legendItems(), gives a list of QWidgets and not QwtLegendItems and hence I cannot use the method setSpacing to set their spacing.
I would further like to access individual legendItems to use their signals (clicked()) in order to highlight individual plots. Both of these problems can be solved if I would know how to access the legendItems.
Please do help me out.
Bookmarks