QCustomPlot Discussion and Comments

AxisRect does not draw the bottom line of pixels when the function axisRect->setAutoMargins(QCP::msNone) is calledReturn to overview

Hello!

This code and picture shows what I mean (red line at the bottom of the widget) :

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
{
    QCustomPlot *plot = new QCustomPlot;

    plot->setBackground(QBrush(QColor(255,100,100)));
    plot->plotLayout()->clear();

    QCPAxisRect *axisRect = new QCPAxisRect(plot, false);
    axisRect->setAutoMargins(QCP::msNone);
    axisRect->setBackground(QBrush(QColor(255,255,255)));

    plot->plotLayout()->addElement(axisRect);

    setCentralWidget(plot);
}

http://imgur.com/gallery/5c0sT

Okay... how is that an issue? :)

It could be for example that this is where usually the axis backbone is painted. however, the axis backbone is sometimes shifted by one pixel, to accomodate for bugs in the Qt Painter system and antialiasing, depending on the Qt version.

refinement:
if you put two QCPAxisRect in one column of the plotLayout(), then the upper QCPAxisRect will be fine, the problem occurs only at the bottom.