Hi,
I use the following Antialisasing settings for my plot:
setNoAntialiasingOnDrag(true); setNotAntialiasedElements(QCP::AntialiasedElement::aeAll);
A mouseReleaseEvent() turns aliasing on for the graph although antialiasing is disabled for all objects. If I remove the line setNoAntialiasingOnDrag(true)
, then everything works like expected.
I debugged the code and I think the problem is located here:
void QCPAxisRect::mouseReleaseEvent(QMouseEvent *event, const QPointF &startPos) { Q_UNUSED(event) Q_UNUSED(startPos) mDragging = false; if (mParentPlot->noAntialiasingOnDrag()) { mParentPlot->setAntialiasedElements(mAADragBackup); mParentPlot->setNotAntialiasedElements(mNotAADragBackup); } }