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

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

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • GUI: Painting
    • 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);

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes