File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -678,8 +678,10 @@ QCPPaintBufferPixmap::~QCPPaintBufferPixmap()
678
678
QCPPainter *QCPPaintBufferPixmap::startPainting()
679
679
{
680
680
QCPPainter *result = new QCPPainter(&mBuffer);
681
- #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
682
- result->setRenderHint(QPainter::HighQualityAntialiasing);
681
+ #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
682
+ result->setRenderHint(QPainter::Antialiasing); // to make Antialiasing look good if using the OpenGL graphicssystem
683
+ #else
684
+ result->setRenderHint(QPainter::HighQualityAntialiasing); // to make Antialiasing look good if using the OpenGL graphicssystem
683
685
#endif
684
686
return result;
685
687
}
@@ -15488,7 +15490,9 @@ void QCustomPlot::paintEvent(QPaintEvent *event)
15488
15490
QCPPainter painter(this);
15489
15491
if (painter.isActive())
15490
15492
{
15491
- #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
15493
+ #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
15494
+ painter.setRenderHint(QPainter::Antialiasing); // to make Antialiasing look good if using the OpenGL graphicssystem
15495
+ #else
15492
15496
painter.setRenderHint(QPainter::HighQualityAntialiasing); // to make Antialiasing look good if using the OpenGL graphicssystem
15493
15497
#endif
15494
15498
if (mBackgroundBrush.style() != Qt::NoBrush)
You can’t perform that action at this time.
0 commit comments