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

CLONE - QSvgGenerator does not respect the painter's clipping rect/region if one is set

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 4.3.4
    • Fix Version/s: Some future release
    • Component/s: SVG Support
    • Labels:
      None

      Description

      QSvgGenerator does not respect the painter's clipping rect/region if one is set

      Deferred:

      Fixing this bug would require implementing features of the SVG 1.1 Clip Module [1], and we currently only support SVG 1.2 Tiny.

      A work-around is to use the viewBox property of the QSvgGenerator to set a clip manually (new in 4.5). While this will not clip individual paint operations it will clip the resulting document to a given rectangle.

      [1] http://www.w3.org/TR/SVG11/masking.html#clip-mod

        Attachments

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

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            averbenko Alex Verbenko
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes