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

Rectangle's clip does not taking to account radius

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.9.0
    • None
    • macOS

    Description

      Setting a Rectangle's clip property to true does not account for the radius property. As a result, child items may still be drawn outside the parent's visible rounded shape.

      In my example:

      • I have a Window containing a Rectangle with radius set to half its width (making it circular)
      • The parent Rectangle has two child rectangles
      • Despite setting clip to true on the parent, both child rectangles are still drawn outside the parent's circular visual boundary

      I expected child items to be constrained within the parent's visible shape (including rounded corners), not just its rectangular bounds.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            duodargel.cordeperil Siarhei Darhel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes