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

Rounded Rectangle outline lacks anti-aliasing

    XMLWordPrintable

Details

    • 73a9e0a7657112cac94107f771c33270467eff08

    Description

      In Qt Quick 2.0 rounded rectangle borders are no longer properly anti-aliased (see the attached screenshot and example code below), which in most cases makes them unsuitable for professional UI designs. Current work-around is to define rounded rectangles using a BorderImage element. The lack of anti-aliasing is regression from QtQuick 1.x.

      import QtQuick 2.0
      
      Rectangle {
          width: 150; height: 150
          Rectangle {
              color: "black"
              width: 100; height: 100
              radius: 20
              anchors.centerIn: parent
          }
      }
      

      Attachments

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

        Activity

          People

            sletta Gunnar Sletta
            jpetrell Joona Petrell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes