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

windows specific: point is not painted if set to Qt::FlatCap or Qt::SquareCap

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.6.2
    • 3.x, 4.6.0
    • GUI: Painting
    • None
    • qt-4.6.0-vs2005, qt-x11 git repo build.
    • 54044ee128f0e2e2ecdbffd03de7241702fd4ba7

    Description

      The following code should paint some black points into the pixmap, but it doesn't work on qt4.6 windows version.
      QPainter painter(&m_image);
      painter.setRenderHints(QPainter::Antialiasing|QPainter::SmoothPixmapTransform);
      painter.setPen(QPen(QColor(0,0,0),10));
      painter.setBrush(Qt::NoBrush);
      painter.drawPoint(e->pos());

      If you set the pen cap to Qt::RoundCap, it draws.

      This only happens in windows version. and there is no such problem against 4.5.x.
      test example attached.

      Attachments

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

        Activity

          People

            sletta Gunnar Sletta
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes