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

QPainter::brushOrigin() returns a QPoint instead QPointF

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.10
    • GUI: Painting
    • e97a1fdad (dev), ccabe30c7 (6.10), e4b3b9f50 (dev)

    Description

      The setter is taking a QPointF so saving/restoring them does not work correctly:

      QPointF oldBO = p->brushOrigin();
      p->setBrushOrigin(vopt->rect.topLeft());
      p->fillRect(vopt->rect, vopt->backgroundBrush);
      p->setBrushOrigin(oldBO);
      

      This should be fixed in Qt7

      Attachments

        For Gerrit Dashboard: QTBUG-137885
        # Subject Branch Project Status CR V

        Activity

          People

            vgt Eirik Aavitsland
            chehrlic Christian Ehrlicher
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes