Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. rotating rectangle causes bad view on edges
Qt 6.11 is out! See what's new in the release blog

rotating rectangle causes bad view on edges

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 351 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • YunusY Offline
    YunusY Offline
    Yunus
    wrote on last edited by
    #1

    I have a rectangle as shown below:

    Rectangle{
            width: 100
            height: 2
            rotation: 27
        }
    

    and it looks like:

    Ekran görüntüsü_20230219_111238.png

    Why the edges look like not smooth, how can I get smooth edges. Why rotation causes this ?

    1 Reply Last reply
    0
    • YunusY Offline
      YunusY Offline
      Yunus
      wrote on last edited by
      #2

      I have just seen the answer on SO. the answer is using the property:

      antialiasing: true
      
      MarkkyboyM 1 Reply Last reply
      0
      • YunusY Yunus has marked this topic as solved on
      • YunusY Yunus

        I have just seen the answer on SO. the answer is using the property:

        antialiasing: true
        
        MarkkyboyM Offline
        MarkkyboyM Offline
        Markkyboy
        wrote on last edited by
        #3

        @Yunus - you can also add smooth: true but smooth and antialiasing can cause poor/slow performance.

        Don't just sit there standing around, pick up a shovel and sweep up!

        I live by the sea, not in it.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved