https://bugs.kde.org/show_bug.cgi?id=391518

Christoph Feck <cf...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |CONFIRMED
     Ever confirmed|0                           |1

--- Comment #1 from Christoph Feck <cf...@kde.org> ---
The issue is that QTextLayout uses QPainter::RasterOp_NotDestination, which
means all pixels that are affected by the cursor rect get inverted. Since the
cursor rect is positioned at fractional positions, usually 3 instead of 2
pixels get inverted.

I suggest to use setRenderHint(QPainter::Antialiasing, false) for the cursor.
This way, the rect rasterization will be pixel-aligned and only the intended 2
pixels get inverted.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to