There are different ways to implement this - one is to use a QGridLayout for plots and legends. Instead of QwtPlot::insertLegend() you would have to do something like this:
legend->setMaxColumns( 1 );
connect( plot,
SIGNAL( legendDataChanged
( const QVariant &,
const QList<QwtLegendData>
& ) ),
legend,
SLOT( updateLegend
( const QVariant &,
const QList<QwtLegendData>
& ) ) );
QwtLegend *legend = new QwtLegend;
legend->setMaxColumns( 1 );
connect( plot, SIGNAL( legendDataChanged( const QVariant &, const QList<QwtLegendData> & ) ),
legend, SLOT( updateLegend( const QVariant &, const QList<QwtLegendData> & ) ) );
To copy to clipboard, switch view to plain text mode
Uwe
Bookmarks