QwtPlot - 如何自定义页脚?

QwtPlot - How to customize the footer?

黄色矩形中的标签是什么意思?如何删除(隐藏)它?

我正在使用 Qwt 6.0.1 和 Qt 4.8.6

我发现,深入查看代码,标签不是标准 QwtPlot 的一部分。这是一个自定义标签,它是使用 QwtText class:

的以下方法创建的
void draw( QPainter *painter, const QRectF &rect ) const;

伪代码:

void MyQwtPlot::drawCustomLabel()
{
    QPainter painter(this);
    QwtText label(<label-text>);
    label.draw(&painter, QRectF(<label-position>));
    painter.end();
}

其中 MyQwtPlot 是扩展 QwtPlot 的 class。

我已经解决了在我的实现中评论 drawCustomLabel 方法的问题。