Z
Z
Zaur Abdulgalimov2015-10-29 22:54:21
Qt
Zaur Abdulgalimov, 2015-10-29 22:54:21

How to draw a smooth line with blur in Qt on iOS?

Draw a QGraphicsLineItem with QGraphicsBlurEffect:

QGraphicsLineItem* lineItem = _scene->addLine(30, 30, 100, 100, *pen);
QGraphicsBlurEffect* blur = new QGraphicsBlurEffect();
lineItem->setGraphicsEffect(blur);

Here's what happened on the desktop 48Y1l, and here's what happened on iOS: uZM3A.
The renderHints method doesn't help. Why is this happening?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly, 2015-10-30
@vt4a2h

If I'm not mistaken, they have this bug in the tracker already.
So, probably just wait for a fix or patch Qt yourself;)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question