Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
None
-
None
Description
When drawing text document using QPainter and QTextLayout::drawCursor(), the drawn text cursor (the caret) does not respect QPainter's opacity if it is less than 1.0.
My suspicion is that it is due to this piece of code:
if (p->paintEngine()->hasFeature(QPaintEngine::RasterOpModes))
p->setCompositionMode(QPainter::RasterOp_NotDestination);