Hello all,
I'm new to programming with Qwt in C++. I have a plot with some curves and markers in it. Currently, I have one QwtLegend for the curves and markers, however, I want to have two separate QwtLegends, one for the curves and one for the markers. Is this possible? If yes, how can I do that?
What I would also be satisfied with would be to have one QwtLegend with curves and markers in separate rows. I have found the function QwtLegend::setMaxColumns(uint columns), but unfortunately, the legend shows more than three items in one row. My code for that looks as follows:
QwtLegend *legend = new QwtLegend();
legend->setFrameStyle(QFrame::Box);
legend->setMaxColumns(3);
plot->insertLegend(legend, QwtPlot::TopLegend, 1.0);
What am I doing wrong?
Thank you very much in advance.
Bookmarks