
Originally Posted by
Maximus2
I would like my QwtText to have some padding
You could try to do some formatting using the rich text syntax or simply overload QwtPlotTextLabel::textRect():
QRectF YourTextLabel
::textRect( {
QRectF rect
= QwtPlotTextLabel
::textRect( rect, textSize
);
rerturn rect.adjusted( ... );
}
QRectF YourTextLabel::textRect(
const QRectF &rect, const QSizeF &textSize ) const
{
QRectF rect = QwtPlotTextLabel::textRect( rect, textSize );
rerturn rect.adjusted( ... );
}
To copy to clipboard, switch view to plain text mode
Uwe
Bookmarks