Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-105844

drawing cursor in QTextLayout::drawCursor() does not respect QPainter's opacity

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • None
    • GUI: Painting
    • None

      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);

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            vgt Eirik Aavitsland
            vladimir.kraus Vladimir Kraus
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes