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

Drawing QPolygon on openGL window doesn't connect first&last points

    XMLWordPrintable

Details

    Description

      If you have a QWindow set up to draw using OpenGL, and you use a QPainter to draw shapes on the current context, then there is a problem drawing polygons with a QPen style other than Qt::SolidLine.

      Basically try to draw a rectangle by setting four points. The rectangle won't be solid unless you use SolidLine.

      See the attached example. Expected result would like is described in this http://doc.qt.io/qt-5/qpainter.html#drawPolygon, but when DotLine used it won't be closed.

      Attachments

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

        Activity

          People

            allan.jensen Allan Sandfeld Jensen
            misalmel Mika Salmela
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes