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

Need to handle invalid Rectangle radius gracefully.

    XMLWordPrintable

Details

    • 24c1173

    Description

      The attached screenshot was produced with the following QML:

      import Qt 4.6
      
      Rectangle {
           width: 500
           height: 500
           Rectangle {
               x: 100
               y: 100
               width: 100
               height: 100
               color: "red"
               border.width: 1
               radius: 90
           }
      }
      

      In this case, we should just draw the corner bits, and only draw that portion of the corner bits that produce a 'nice-looking' image (in this case, 4 50x50 'cropped' corners, producing a rounded diamond shape).

      Ideally this is handled automatically by qDrawBroderPixmap.

      Attachments

        1. modern_art.png
          3 kB
          Michael Brasser (closed Nokia identity)

        Issue Links

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

          Activity

            People

              martjone Martin Jones (closed Nokia identity) (Inactive)
              brasser Michael Brasser (closed Nokia identity) (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes