PS: the main problem for curveItem is qwtUpdateLegendIconSize, that is a static method in QwtPlotCurve and can't be override.
{
...
virtual QwtGraphic legendIcon
( int index,
const QSizeF &size
) const {
extendedSize.setHeight( size.height() );
extendedSize.setWidth( ... );
}
};
class YourCurve: public QwtPlotCurve
{
...
virtual QwtGraphic legendIcon( int index, const QSizeF &size ) const
{
QSizeF extendedSize;
extendedSize.setHeight( size.height() );
extendedSize.setWidth( ... );
return QwtPlotCurve::legendIcon( index, extendedSize );
}
};
To copy to clipboard, switch view to plain text mode
Uwe
Bookmarks