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

QPainterPath, toSubpathPolygons/ toFillPolygons/ toFillPolygon deprecations

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 5.15
    • 5.15.0 Beta1
    • GUI: Painting
    • None
    • All
    • 50d2acdc93b4de2ba56eb67787e2bdcb21dd4bea

    Description

      Because of the deprecation of the QPainterPath methods using a QMatrix as parameter the following application code runs into compiler errors:

      const auto ... = path.toSubpathPolygons();

      error: no matching function for call to ‘QPainterPath::toSubpathPolygons() const’
      note: candidate: ‘QList<QPolygonF> QPainterPath::toSubpathPolygons(const QTransform&) const’

      So we have code that does not compile anymore without being guilty of using the deprecated QMatrix.

      The expected API would be to have something like:

      ... toSubpathPolygons( const QTransform& = QTransform() ) const;

      Attachments

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

        Activity

          People

            jkobus Jarek Kobus
            uwe Uwe Rathmann
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes